/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmPrincipal.java
 *
 * Created on 10-nov-2010, 15:24:48
 */

package hcitpe2;
import Handlers.CategoryHandler;
import Handlers.ItemsHandler;
import Handlers.LanguageHandler;
import Handlers.ProductHandler;
import Handlers.SubCategoryHandler;
import imageClipping.ClipCreator;
import imageClipping.Clipping;
import apiAccess.Product;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JToggleButton;
import javax.swing.filechooser.FileNameExtensionFilter;
import org.jdesktop.application.Application;
import org.jdesktop.application.ApplicationContext;
import reprortes.ProductLister;
import reprortes.Ranking;
import reprortes.Reporte;
import reprortes.ReporteAdapter;
/**
 *
 * @author Alan
 */
public class frmPrincipal extends javax.swing.JFrame {

    Handlers.LanguageHandler handLanguage;
    Handlers.CategoryHandler handCategories;
    Handlers.SubCategoryHandler handSubCategories;
    Handlers.ItemsHandler handItems;
    Handlers.ProductHandler handProduct;
    List<Integer> productsList;
    Reporte masVistos;
    Reporte masBuscados;
    int actualCategorie = 0;

    JPanel actualView;
    JPanel actualPan;

    private void changeView(JPanel view,JPanel pan){
        if(actualView != null){
            actualView.setVisible(false);
        }
        actualView=view;
        if(actualView != null){
            actualView.setVisible(true);
        }
        if(actualPan!=null){
            actualPan.setVisible(false);
        }
        actualPan=pan;
        if(actualPan!=null){
            actualPan.setVisible(true);
        }
    }


    public List<Integer> getProductsList() {
        return productsList;
    }

    public void setProductsList(List<Integer> productsList) {
        this.productsList = productsList;
    }
    String breadcumbCat;
    String breadcumbSubCat;



    /** Creates new form frmPrincipal */
    public frmPrincipal() {
        lblMsj = new javax.swing.JLabel();
        try{
        handLanguage=new LanguageHandler();
        this.handLanguage.setActualLanguage(1);
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
        }catch(Exception e){
           lblMsj.setText("hubo un error cargando los idiomas, es posible que algunas cosas no cambien de idioma");
        }finally{
        
        try{
        masVistos=Reporte.load("masvistos.report");
        }catch(IOException e){
            lblMsj.setText("se produjo un error al cargar ./masvistos.report, este reporte estara deshabilitado ");
            btnMostWanted.setEnabled(false);
        }finally{
        try{
        masBuscados=Reporte.load("masbuscados.report");
        }catch(IOException e){
            lblMsj.setText("se produjo un error al cargar ./masbuscados.report, este reporte estara deshabilitado ");
            btnMostViewed.setEnabled(false);
        }finally{
        this.setUndecorated(true);
        initComponents();
        this.panLanguages.setVisible(false);
        this.panKeyboard.setVisible(false);
        this.panReports.setVisible(false);
        this.panSubCategoryItems.setVisible(false);
        this.panItem.setVisible(false);
        this.panMapView.setVisible(false);
      //  this.panBookItemDescription.setVisible(false);
        this.togSpanish.setSelected(true);
        this.togClassicView.setSelected(true);
        this.panReportsView.setVisible(false);
        this.btnNextSubCat.setEnabled(false);
        this.btnPreviousSubCat.setEnabled(false);

        this.btnSubCatItem1.setVisible(false);
        this.btnSubCatItem2.setVisible(false);
        this.btnSubCatItem3.setVisible(false);
        this.btnSubCatItem4.setVisible(false);
        this.btnSubCatItem5.setVisible(false);
        this.btnSubCatItem6.setVisible(false);
        this.btnSubCatItem7.setVisible(false);
        this.btnSubCatItem8.setVisible(false);
        this.btnSubCatItem9.setVisible(false);
        this.btnSubCatItem10.setVisible(false);

        this.btnSubCategories1.setVisible(false);
        this.btnSubCategories2.setVisible(false);
        this.btnSubCategories3.setVisible(false);
        this.btnSubCategories4.setVisible(false);
        this.btnSubCategories5.setVisible(false);

        actualView=this.panClassicView;
        actualPan=this.panCatNavigator;

        setCategories();
        setMap();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        setBounds(0,0,screenSize.width, screenSize.height);
        
        javax.swing.ImageIcon im=new javax.swing.ImageIcon("/hcitpe2/resources/images/Plano.jpg");
        int x=this.panNorthPanel.getHeight()+panSouthPanel.getHeight()+50;
        im=new javax.swing.ImageIcon(im.getImage().getScaledInstance((screenSize.width*2/3),  (screenSize.height)-x, 0));
        this.lblMap.setIcon(im);
        }}}
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panMainPanel = new javax.swing.JPanel();
        panNorthPanel = new javax.swing.JPanel();
        txtSearch = new javax.swing.JTextField();
        btnSearch = new javax.swing.JButton();
        togClassicView = new javax.swing.JToggleButton();
        togMapView = new javax.swing.JToggleButton();
        lblMsj = new javax.swing.JLabel();
        panSouthPanel = new javax.swing.JPanel();
        btnScanCode = new javax.swing.JButton();
        btnHelp = new javax.swing.JButton();
        btnQuit = new javax.swing.JButton();
        togLanguage = new javax.swing.JToggleButton();
        togReports = new javax.swing.JToggleButton();
        togAyuda = new javax.swing.JToggleButton();
        panCenterPanel = new javax.swing.JPanel();
        panClassicView = new javax.swing.JPanel();
        panItem = new javax.swing.JPanel();
        panItemBar = new javax.swing.JPanel();
        btnBack = new javax.swing.JButton();
        lblBreadcumb = new javax.swing.JLabel();
        panItemInfo = new javax.swing.JPanel();
        btnPreviousItem = new javax.swing.JButton();
        btnNextItem = new javax.swing.JButton();
        panItemContainer = new javax.swing.JPanel();
        panItemImage = new javax.swing.JPanel();
        lblItemCover = new javax.swing.JLabel();
        panItemTitle = new javax.swing.JLabel();
        panItemDescription = new javax.swing.JPanel();
        panDVDItemDescription = new javax.swing.JPanel();
        lblDVDDurationTitle = new javax.swing.JLabel();
        lblDVDReleaseTitle = new javax.swing.JLabel();
        lblDVDDiscsTitle = new javax.swing.JLabel();
        lblDVDAspectTitle = new javax.swing.JLabel();
        lblDVDRegionTitle = new javax.swing.JLabel();
        lblDVDSubsTitle = new javax.swing.JLabel();
        lblDVDFormatTitle = new javax.swing.JLabel();
        lblDVDLanguageTitle = new javax.swing.JLabel();
        lblDVDStaringTitle = new javax.swing.JLabel();
        lblDVDSalesRankTitle = new javax.swing.JLabel();
        lblDVDDuration = new javax.swing.JLabel();
        lblDVDRelease = new javax.swing.JLabel();
        lblDVDDiscs = new javax.swing.JLabel();
        lblDVDAspect = new javax.swing.JLabel();
        lblDVDRegion = new javax.swing.JLabel();
        lblDVDSubs = new javax.swing.JLabel();
        lblDVDFormat = new javax.swing.JLabel();
        lblDVDLanguage = new javax.swing.JLabel();
        lblDVDStaring = new javax.swing.JLabel();
        lblDVDSalesRank = new javax.swing.JLabel();
        panBookItemDescription = new javax.swing.JPanel();
        lblBookLanguageTitle = new javax.swing.JLabel();
        lblBookPubDateTitle = new javax.swing.JLabel();
        lblBookPublisherTitle = new javax.swing.JLabel();
        lblBookAuthorsTitle = new javax.swing.JLabel();
        lblBookSalesRankTitle = new javax.swing.JLabel();
        lblBookLanguage = new javax.swing.JLabel();
        lblBookPubDate = new javax.swing.JLabel();
        lblBookPublisher = new javax.swing.JLabel();
        lblBookAuthors = new javax.swing.JLabel();
        lblBookSalesRank = new javax.swing.JLabel();
        lblPriceItem = new javax.swing.JLabel();
        lblItems = new javax.swing.JLabel();
        lblPagesItem = new javax.swing.JLabel();
        panSubCategoryItems = new javax.swing.JPanel();
        panSubCategoryConteiner = new javax.swing.JPanel();
        btnPreviousSubCategory = new javax.swing.JButton();
        btnNextSubCategory = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        panCategoryContainer2 = new javax.swing.JPanel();
        btnSubCatItem1 = new javax.swing.JButton();
        btnSubCatItem2 = new javax.swing.JButton();
        btnSubCatItem3 = new javax.swing.JButton();
        btnSubCatItem4 = new javax.swing.JButton();
        btnSubCatItem5 = new javax.swing.JButton();
        btnSubCatItem6 = new javax.swing.JButton();
        btnSubCatItem7 = new javax.swing.JButton();
        btnSubCatItem8 = new javax.swing.JButton();
        btnSubCatItem9 = new javax.swing.JButton();
        btnSubCatItem10 = new javax.swing.JButton();
        lblPages = new javax.swing.JLabel();
        panSubCatBack = new javax.swing.JPanel();
        btnBackSubCat = new javax.swing.JButton();
        lblSubCatTitle = new javax.swing.JLabel();
        panCatNavigator = new javax.swing.JPanel();
        panCategories = new javax.swing.JPanel();
        btnPreviousCategory = new javax.swing.JButton();
        btnNextCategory = new javax.swing.JButton();
        panCategoryContainer = new javax.swing.JPanel();
        togCategories1 = new javax.swing.JToggleButton();
        togCategories2 = new javax.swing.JToggleButton();
        togCategories3 = new javax.swing.JToggleButton();
        togCategories4 = new javax.swing.JToggleButton();
        togCategories5 = new javax.swing.JToggleButton();
        lblCategories = new javax.swing.JLabel();
        lblPagesCategory = new javax.swing.JLabel();
        panSubCategories = new javax.swing.JPanel();
        btnPreviousSubCat = new javax.swing.JButton();
        btnNextSubCat = new javax.swing.JButton();
        lblSubCat = new javax.swing.JLabel();
        panCategoryContainer1 = new javax.swing.JPanel();
        btnSubCategories1 = new javax.swing.JButton();
        btnSubCategories2 = new javax.swing.JButton();
        btnSubCategories3 = new javax.swing.JButton();
        btnSubCategories4 = new javax.swing.JButton();
        btnSubCategories5 = new javax.swing.JButton();
        lblPagesSubCat = new javax.swing.JLabel();
        panMapView = new javax.swing.JPanel();
        panMapConteiner = new javax.swing.JPanel();
        lblMap = new javax.swing.JLabel();
        panLeftMap = new javax.swing.JPanel();
        btnMapDVD = new javax.swing.JButton();
        btnMap2 = new javax.swing.JButton();
        btnMap3 = new javax.swing.JButton();
        btnMap4 = new javax.swing.JButton();
        btnMap5 = new javax.swing.JButton();
        btnMap6 = new javax.swing.JButton();
        btnMap7 = new javax.swing.JButton();
        btnMap8 = new javax.swing.JButton();
        panRightMap = new javax.swing.JPanel();
        btnMapBook = new javax.swing.JButton();
        btnMap10 = new javax.swing.JButton();
        btnMap11 = new javax.swing.JButton();
        btnMap12 = new javax.swing.JButton();
        btnMap13 = new javax.swing.JButton();
        btnMap14 = new javax.swing.JButton();
        btnMap15 = new javax.swing.JButton();
        panReportsView = new javax.swing.JPanel();
        lblReportsName = new javax.swing.JLabel();
        panProduct1 = new javax.swing.JPanel();
        labProduct10 = new javax.swing.JLabel();
        botDetProduct10 = new javax.swing.JButton();
        lblTimes10 = new javax.swing.JLabel();
        panProduct2 = new javax.swing.JPanel();
        labProduct9 = new javax.swing.JLabel();
        botDetProduct9 = new javax.swing.JButton();
        lblTimes9 = new javax.swing.JLabel();
        panProduct3 = new javax.swing.JPanel();
        labProduct8 = new javax.swing.JLabel();
        botDetProduct8 = new javax.swing.JButton();
        lblTimes8 = new javax.swing.JLabel();
        panProduct4 = new javax.swing.JPanel();
        labProduct7 = new javax.swing.JLabel();
        botDetProduct7 = new javax.swing.JButton();
        lblTimes7 = new javax.swing.JLabel();
        panProduct5 = new javax.swing.JPanel();
        labProduct6 = new javax.swing.JLabel();
        botDetProduct6 = new javax.swing.JButton();
        lblTimes6 = new javax.swing.JLabel();
        panProduct6 = new javax.swing.JPanel();
        labProduct5 = new javax.swing.JLabel();
        botDetProduct5 = new javax.swing.JButton();
        lblTimes5 = new javax.swing.JLabel();
        panProduct7 = new javax.swing.JPanel();
        labProduct4 = new javax.swing.JLabel();
        botDetProduct4 = new javax.swing.JButton();
        lblTimes4 = new javax.swing.JLabel();
        panProduct8 = new javax.swing.JPanel();
        labProduct3 = new javax.swing.JLabel();
        botDetProduct3 = new javax.swing.JButton();
        lblTimes3 = new javax.swing.JLabel();
        panProduct9 = new javax.swing.JPanel();
        labProduct2 = new javax.swing.JLabel();
        botDetProduct2 = new javax.swing.JButton();
        lblTimes2 = new javax.swing.JLabel();
        panProduct10 = new javax.swing.JPanel();
        labProduct1 = new javax.swing.JLabel();
        botDetProduct1 = new javax.swing.JButton();
        lblTimes1 = new javax.swing.JLabel();
        lblDetails = new javax.swing.JLabel();
        lblTimes = new javax.swing.JLabel();
        panLanguages = new javax.swing.JPanel();
        togSpanish = new javax.swing.JToggleButton();
        togEnglish = new javax.swing.JToggleButton();
        panReports = new javax.swing.JPanel();
        btnSalesRank = new javax.swing.JButton();
        btnMostWanted = new javax.swing.JButton();
        btnMostViewed = new javax.swing.JButton();
        panKeyboard = new javax.swing.JPanel();
        btnQ = new javax.swing.JButton();
        btnW = new javax.swing.JButton();
        btnE = new javax.swing.JButton();
        btnR = new javax.swing.JButton();
        btnT = new javax.swing.JButton();
        btnY = new javax.swing.JButton();
        btnU = new javax.swing.JButton();
        btnI = new javax.swing.JButton();
        btnO = new javax.swing.JButton();
        btnP = new javax.swing.JButton();
        btnEnter = new javax.swing.JButton();
        btn1 = new javax.swing.JButton();
        btn2 = new javax.swing.JButton();
        btn3 = new javax.swing.JButton();
        btn4 = new javax.swing.JButton();
        btn5 = new javax.swing.JButton();
        btn6 = new javax.swing.JButton();
        btn7 = new javax.swing.JButton();
        btn8 = new javax.swing.JButton();
        btn9 = new javax.swing.JButton();
        btn0 = new javax.swing.JButton();
        btnL = new javax.swing.JButton();
        btnK = new javax.swing.JButton();
        btnJ = new javax.swing.JButton();
        btnG = new javax.swing.JButton();
        btnH = new javax.swing.JButton();
        btnF = new javax.swing.JButton();
        btnD = new javax.swing.JButton();
        btnS = new javax.swing.JButton();
        btnA = new javax.swing.JButton();
        btnX = new javax.swing.JButton();
        btnB = new javax.swing.JButton();
        btnCloseKeyboard = new javax.swing.JButton();
        btnC = new javax.swing.JButton();
        btnN = new javax.swing.JButton();
        btnV = new javax.swing.JButton();
        btnZ = new javax.swing.JButton();
        btnSpace = new javax.swing.JButton();
        btnDel = new javax.swing.JButton();
        btnM = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        txtSearch.setFont(new java.awt.Font("Dialog", 0, 24));
        txtSearch.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                txtSearchFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtSearchFocusLost(evt);
            }
        });

        btnSearch.setText("Buscar");
        btnSearch.setName("search"); // NOI18N
        btnSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSearchActionPerformed(evt);
            }
        });
        btnSearch.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                btnSearchFocusLost(evt);
            }
        });

        togClassicView.setText("Vista clasica");
        togClassicView.setName("classicView"); // NOI18N
        togClassicView.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togClassicViewActionPerformed(evt);
            }
        });

        togMapView.setText("Mapa");
        togMapView.setName("mapView"); // NOI18N
        togMapView.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togMapViewActionPerformed(evt);
            }
        });

        lblMsj.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblMsj.setForeground(new java.awt.Color(255, 0, 0));
        lblMsj.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        org.jdesktop.layout.GroupLayout panNorthPanelLayout = new org.jdesktop.layout.GroupLayout(panNorthPanel);
        panNorthPanel.setLayout(panNorthPanelLayout);
        panNorthPanelLayout.setHorizontalGroup(
            panNorthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panNorthPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(togClassicView, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togMapView, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(lblMsj, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 19532, Short.MAX_VALUE)
                .add(18, 18, 18)
                .add(txtSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 255, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        panNorthPanelLayout.setVerticalGroup(
            panNorthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(togClassicView, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(togMapView, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panNorthPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(panNorthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, lblMsj, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, panNorthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(btnSearch, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)
                        .add(txtSearch, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(15, 15, 15))
        );

        btnScanCode.setText("Escanear código");
        btnScanCode.setName("scanCode"); // NOI18N
        btnScanCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnScanCodeActionPerformed(evt);
            }
        });

        btnHelp.setText("Ayuda");
        btnHelp.setName("help"); // NOI18N
        btnHelp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHelpActionPerformed(evt);
            }
        });

        btnQuit.setText("Salir");
        btnQuit.setName("quit"); // NOI18N
        btnQuit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuitActionPerformed(evt);
            }
        });

        togLanguage.setText("Cambiar idioma");
        togLanguage.setName("changeLanguage"); // NOI18N
        togLanguage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togLanguageActionPerformed(evt);
            }
        });
        togLanguage.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                togLanguageFocusLost(evt);
            }
        });

        togReports.setText("Reportes");
        togReports.setName("reports"); // NOI18N
        togReports.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togReportsActionPerformed(evt);
            }
        });
        togReports.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                togReportsFocusLost(evt);
            }
        });

        togAyuda.setText("Ayuda");
        togAyuda.setName("help"); // NOI18N
        togAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togAyudaActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panSouthPanelLayout = new org.jdesktop.layout.GroupLayout(panSouthPanel);
        panSouthPanel.setLayout(panSouthPanelLayout);
        panSouthPanelLayout.setHorizontalGroup(
            panSouthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSouthPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnScanCode, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togLanguage, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togReports, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togAyuda, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnQuit, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                .addContainerGap())
        );
        panSouthPanelLayout.setVerticalGroup(
            panSouthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSouthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, btnScanCode, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, panSouthPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(togReports, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(togLanguage, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(org.jdesktop.layout.GroupLayout.TRAILING, btnQuit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(togAyuda, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
        );

        panCenterPanel.setBackground(new java.awt.Color(255, 255, 255));
        panCenterPanel.setAlignmentX(35);
        panCenterPanel.setFocusCycleRoot(true);
        panCenterPanel.setFocusTraversalPolicyProvider(true);

        btnBack.setText("Volver");
        btnBack.setName("back"); // NOI18N
        btnBack.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBackActionPerformed(evt);
            }
        });

        lblBreadcumb.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblBreadcumb.setText("Categoria, Subcategoria...");

        org.jdesktop.layout.GroupLayout panItemBarLayout = new org.jdesktop.layout.GroupLayout(panItemBar);
        panItemBar.setLayout(panItemBarLayout);
        panItemBarLayout.setHorizontalGroup(
            panItemBarLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panItemBarLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnBack, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(lblBreadcumb, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 669, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19366, Short.MAX_VALUE))
        );
        panItemBarLayout.setVerticalGroup(
            panItemBarLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(lblBreadcumb, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
            .add(btnBack, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
        );

        btnPreviousItem.setText("<");
        btnPreviousItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPreviousItemActionPerformed(evt);
            }
        });

        btnNextItem.setText(">");
        btnNextItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNextItemActionPerformed(evt);
            }
        });

        panItemContainer.setBackground(new java.awt.Color(255, 255, 255));

        panItemImage.setBackground(new java.awt.Color(255, 255, 255));

        org.jdesktop.layout.GroupLayout panItemImageLayout = new org.jdesktop.layout.GroupLayout(panItemImage);
        panItemImage.setLayout(panItemImageLayout);
        panItemImageLayout.setHorizontalGroup(
            panItemImageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(lblItemCover, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9805, Short.MAX_VALUE)
        );
        panItemImageLayout.setVerticalGroup(
            panItemImageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(lblItemCover, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1283, Short.MAX_VALUE)
        );

        panItemTitle.setFont(new java.awt.Font("Tahoma", 0, 22));
        panItemTitle.setText("Titulo del libro/DVD");

        lblDVDDurationTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDDurationTitle.setText("Duración:");
        lblDVDDurationTitle.setName("dvdDurationTitle"); // NOI18N

        lblDVDReleaseTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDReleaseTitle.setText("Fecha de lanzamiento:");
        lblDVDReleaseTitle.setName("dvdReleaseTitle"); // NOI18N

        lblDVDDiscsTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDDiscsTitle.setText("Número de discos:");
        lblDVDDiscsTitle.setName("dvdDiscsTitle"); // NOI18N

        lblDVDAspectTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDAspectTitle.setText("Aspecto de la imágen:");
        lblDVDAspectTitle.setName("dvdAspectRatioTitle"); // NOI18N

        lblDVDRegionTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDRegionTitle.setText("Región:");
        lblDVDRegionTitle.setName("dvdRegionTitle"); // NOI18N

        lblDVDSubsTitle.setText("Subtítulos:");
        lblDVDSubsTitle.setName("dvdSubsTitle"); // NOI18N

        lblDVDFormatTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDFormatTitle.setText("Formato:");
        lblDVDFormatTitle.setName("dvdFormatTitle"); // NOI18N

        lblDVDLanguageTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDLanguageTitle.setText("Lenguaje:");
        lblDVDLanguageTitle.setName("dvdLanguageTitle"); // NOI18N

        lblDVDStaringTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDStaringTitle.setText("Protagonizan:");
        lblDVDStaringTitle.setName("dvdStaringTitle"); // NOI18N

        lblDVDSalesRankTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDSalesRankTitle.setText("Ranking de ventas:");
        lblDVDSalesRankTitle.setName("dvdSalesRankTitle"); // NOI18N

        lblDVDDuration.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDDuration.setText("Duración...");

        lblDVDRelease.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDRelease.setText("Fecha de lanzamiento...");

        lblDVDDiscs.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDDiscs.setText("Número de discos...");

        lblDVDAspect.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDAspect.setText("Aspecto de la imágen...");

        lblDVDRegion.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDRegion.setText("Región...");

        lblDVDSubs.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDSubs.setText("Subtítulos...");

        lblDVDFormat.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDFormat.setText("Formato...");

        lblDVDLanguage.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDLanguage.setText("Lenguaje...");

        lblDVDStaring.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDStaring.setText("Protagonizan...");

        lblDVDSalesRank.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblDVDSalesRank.setText("Ranking de ventas...");

        org.jdesktop.layout.GroupLayout panDVDItemDescriptionLayout = new org.jdesktop.layout.GroupLayout(panDVDItemDescription);
        panDVDItemDescription.setLayout(panDVDItemDescriptionLayout);
        panDVDItemDescriptionLayout.setHorizontalGroup(
            panDVDItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panDVDItemDescriptionLayout.createSequentialGroup()
                .addContainerGap()
                .add(panDVDItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblDVDFormatTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDSubsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDRegionTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDAspectTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDDiscsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDReleaseTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDDurationTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDSalesRankTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDStaringTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblDVDLanguageTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE))
                .add(18, 18, 18)
                .add(panDVDItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblDVDFormat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDSubs, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDRegion, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDAspect, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDDiscs, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDRelease, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDDuration, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDSalesRank, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDStaring, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblDVDLanguage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE))
                .addContainerGap(9636, Short.MAX_VALUE))
        );
        panDVDItemDescriptionLayout.setVerticalGroup(
            panDVDItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panDVDItemDescriptionLayout.createSequentialGroup()
                .addContainerGap()
                .add(panDVDItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panDVDItemDescriptionLayout.createSequentialGroup()
                        .add(lblDVDSalesRank, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDStaring, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDLanguage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDFormat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDSubs, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDRegion, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDAspect, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
                        .add(17, 17, 17)
                        .add(lblDVDDiscs, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                        .add(23, 23, 23)
                        .add(lblDVDRelease, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                        .add(21, 21, 21)
                        .add(lblDVDDuration, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
                    .add(panDVDItemDescriptionLayout.createSequentialGroup()
                        .add(lblDVDSalesRankTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDStaringTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDLanguageTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDFormatTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDSubsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDRegionTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblDVDAspectTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(17, 17, 17)
                        .add(lblDVDDiscsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(23, 23, 23)
                        .add(lblDVDReleaseTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
                        .add(21, 21, 21)
                        .add(lblDVDDurationTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)))
                .addContainerGap())
        );

        lblBookLanguageTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookLanguageTitle.setText("Lenguaje:");
        lblBookLanguageTitle.setName("bookLanguageTitle"); // NOI18N

        lblBookPubDateTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookPubDateTitle.setText("Fecha Publicacion:");
        lblBookPubDateTitle.setName("bookPubDateTitle"); // NOI18N

        lblBookPublisherTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookPublisherTitle.setText("Editorial:");
        lblBookPublisherTitle.setName("bookPublisherTitle"); // NOI18N

        lblBookAuthorsTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookAuthorsTitle.setText("Autores:");
        lblBookAuthorsTitle.setName("bookAuthorsTitle"); // NOI18N

        lblBookSalesRankTitle.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookSalesRankTitle.setText("Ranking de ventas:");
        lblBookSalesRankTitle.setName("bookSalesRankTitle"); // NOI18N

        lblBookLanguage.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookLanguage.setText("Subtítulos...");

        lblBookPubDate.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookPubDate.setText("Formato...");

        lblBookPublisher.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookPublisher.setText("Lenguaje...");

        lblBookAuthors.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookAuthors.setText("Protagonizan...");

        lblBookSalesRank.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblBookSalesRank.setText("Ranking de ventas...");

        org.jdesktop.layout.GroupLayout panBookItemDescriptionLayout = new org.jdesktop.layout.GroupLayout(panBookItemDescription);
        panBookItemDescription.setLayout(panBookItemDescriptionLayout);
        panBookItemDescriptionLayout.setHorizontalGroup(
            panBookItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panBookItemDescriptionLayout.createSequentialGroup()
                .addContainerGap()
                .add(panBookItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblBookPubDateTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblBookLanguageTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblBookSalesRankTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblBookAuthorsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
                    .add(lblBookPublisherTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE))
                .add(18, 18, 18)
                .add(panBookItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblBookPubDate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblBookLanguage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblBookSalesRank, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblBookAuthors, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)
                    .add(lblBookPublisher, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE))
                .addContainerGap(9636, Short.MAX_VALUE))
        );
        panBookItemDescriptionLayout.setVerticalGroup(
            panBookItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panBookItemDescriptionLayout.createSequentialGroup()
                .addContainerGap()
                .add(panBookItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panBookItemDescriptionLayout.createSequentialGroup()
                        .add(lblBookSalesRank, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookAuthors, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookPublisher, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookPubDate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 241, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookLanguage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE))
                    .add(panBookItemDescriptionLayout.createSequentialGroup()
                        .add(lblBookSalesRankTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookAuthorsTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookPublisherTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookPubDateTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 241, Short.MAX_VALUE)
                        .add(15, 15, 15)
                        .add(lblBookLanguageTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)))
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout panItemDescriptionLayout = new org.jdesktop.layout.GroupLayout(panItemDescription);
        panItemDescription.setLayout(panItemDescriptionLayout);
        panItemDescriptionLayout.setHorizontalGroup(
            panItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panDVDItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 10198, Short.MAX_VALUE)
            .add(panItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panBookItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 10198, Short.MAX_VALUE))
        );
        panItemDescriptionLayout.setVerticalGroup(
            panItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panDVDItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panItemDescriptionLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panItemDescriptionLayout.createSequentialGroup()
                    .add(panBookItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(1, 1, 1)))
        );

        lblPriceItem.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblPriceItem.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lblPriceItem.setText("price");

        org.jdesktop.layout.GroupLayout panItemContainerLayout = new org.jdesktop.layout.GroupLayout(panItemContainer);
        panItemContainer.setLayout(panItemContainerLayout);
        panItemContainerLayout.setHorizontalGroup(
            panItemContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panItemContainerLayout.createSequentialGroup()
                .addContainerGap()
                .add(panItemContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panItemContainerLayout.createSequentialGroup()
                        .add(panItemTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 10285, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(lblPriceItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9712, Short.MAX_VALUE)
                        .addContainerGap())
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, panItemContainerLayout.createSequentialGroup()
                        .add(panItemImage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(panItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        panItemContainerLayout.setVerticalGroup(
            panItemContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panItemContainerLayout.createSequentialGroup()
                .addContainerGap()
                .add(panItemContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE, false)
                    .add(panItemTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(lblPriceItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panItemContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(panItemImage, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, panItemDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        lblItems.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblItems.setText("Items:");

        lblPagesItem.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblPagesItem.setForeground(new java.awt.Color(0, 0, 102));
        lblPagesItem.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        org.jdesktop.layout.GroupLayout panItemInfoLayout = new org.jdesktop.layout.GroupLayout(panItemInfo);
        panItemInfo.setLayout(panItemInfoLayout);
        panItemInfoLayout.setHorizontalGroup(
            panItemInfoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panItemInfoLayout.createSequentialGroup()
                .addContainerGap()
                .add(panItemInfoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblPagesItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20135, Short.MAX_VALUE)
                    .add(panItemInfoLayout.createSequentialGroup()
                        .add(btnPreviousItem, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(panItemInfoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblItems, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 151, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(panItemInfoLayout.createSequentialGroup()
                                .add(panItemContainer, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(btnNextItem, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        panItemInfoLayout.setVerticalGroup(
            panItemInfoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panItemInfoLayout.createSequentialGroup()
                .add(lblItems, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panItemInfoLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnPreviousItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1329, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnNextItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1329, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, panItemContainer, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblPagesItem))
        );

        org.jdesktop.layout.GroupLayout panItemLayout = new org.jdesktop.layout.GroupLayout(panItem);
        panItem.setLayout(panItemLayout);
        panItemLayout.setHorizontalGroup(
            panItemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panItemInfo, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panItemBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        panItemLayout.setVerticalGroup(
            panItemLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panItemLayout.createSequentialGroup()
                .add(panItemBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panItemInfo, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnPreviousSubCategory.setText("<");
        btnPreviousSubCategory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPreviousSubCategoryActionPerformed(evt);
            }
        });

        btnNextSubCategory.setText(">");
        btnNextSubCategory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNextSubCategoryActionPerformed(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel3.setText("Items:");

        panCategoryContainer2.setBackground(new java.awt.Color(255, 255, 255));

        btnSubCatItem1.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem1.setText("jButton1");
        btnSubCatItem1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        btnSubCatItem1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnSubCatItem1MouseReleased(evt);
            }
        });
        btnSubCatItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSubCatItem1ActionPerformed(evt);
            }
        });

        btnSubCatItem2.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem2.setText("jButton2");
        btnSubCatItem2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem3.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem3.setText("jButton3");
        btnSubCatItem3.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem4.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem4.setText("jButton4");
        btnSubCatItem4.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem5.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem5.setText("jButton5");
        btnSubCatItem5.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem6.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem6.setText("jButton1");
        btnSubCatItem6.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem7.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem7.setText("jButton2");
        btnSubCatItem7.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem8.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem8.setText("jButton3");
        btnSubCatItem8.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem9.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem9.setText("jButton4");
        btnSubCatItem9.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btnSubCatItem10.setBackground(new java.awt.Color(255, 255, 255));
        btnSubCatItem10.setText("jButton5");
        btnSubCatItem10.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        org.jdesktop.layout.GroupLayout panCategoryContainer2Layout = new org.jdesktop.layout.GroupLayout(panCategoryContainer2);
        panCategoryContainer2.setLayout(panCategoryContainer2Layout);
        panCategoryContainer2Layout.setHorizontalGroup(
            panCategoryContainer2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoryContainer2Layout.createSequentialGroup()
                .addContainerGap()
                .add(panCategoryContainer2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panCategoryContainer2Layout.createSequentialGroup()
                        .add(btnSubCatItem1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3997, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE))
                    .add(panCategoryContainer2Layout.createSequentialGroup()
                        .add(btnSubCatItem6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3997, Short.MAX_VALUE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnSubCatItem10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panCategoryContainer2Layout.setVerticalGroup(
            panCategoryContainer2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoryContainer2Layout.createSequentialGroup()
                .addContainerGap()
                .add(panCategoryContainer2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panCategoryContainer2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCatItem7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE)
                    .add(btnSubCatItem6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 634, Short.MAX_VALUE))
                .addContainerGap())
        );

        lblPages.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblPages.setForeground(new java.awt.Color(0, 0, 102));
        lblPages.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblPages.setText("1/2");

        org.jdesktop.layout.GroupLayout panSubCategoryConteinerLayout = new org.jdesktop.layout.GroupLayout(panSubCategoryConteiner);
        panSubCategoryConteiner.setLayout(panSubCategoryConteinerLayout);
        panSubCategoryConteinerLayout.setHorizontalGroup(
            panSubCategoryConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCategoryConteinerLayout.createSequentialGroup()
                .addContainerGap()
                .add(panSubCategoryConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblPages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20135, Short.MAX_VALUE)
                    .add(panSubCategoryConteinerLayout.createSequentialGroup()
                        .add(btnPreviousSubCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(panSubCategoryConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 151, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, panSubCategoryConteinerLayout.createSequentialGroup()
                                .add(panCategoryContainer2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(btnNextSubCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        panSubCategoryConteinerLayout.setVerticalGroup(
            panSubCategoryConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCategoryConteinerLayout.createSequentialGroup()
                .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panSubCategoryConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnNextSubCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1296, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnPreviousSubCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1296, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, panCategoryContainer2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblPages)
                .addContainerGap())
        );

        btnBackSubCat.setText("Volver");
        btnBackSubCat.setName("backSubCat"); // NOI18N
        btnBackSubCat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBackSubCatActionPerformed(evt);
            }
        });

        lblSubCatTitle.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblSubCatTitle.setText("Categoria, Subcategoria...");

        org.jdesktop.layout.GroupLayout panSubCatBackLayout = new org.jdesktop.layout.GroupLayout(panSubCatBack);
        panSubCatBack.setLayout(panSubCatBackLayout);
        panSubCatBackLayout.setHorizontalGroup(
            panSubCatBackLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCatBackLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnBackSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(8, 8, 8)
                .add(lblSubCatTitle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 669, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19368, Short.MAX_VALUE))
        );
        panSubCatBackLayout.setVerticalGroup(
            panSubCatBackLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(lblSubCatTitle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
            .add(btnBackSubCat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout panSubCategoryItemsLayout = new org.jdesktop.layout.GroupLayout(panSubCategoryItems);
        panSubCategoryItems.setLayout(panSubCategoryItemsLayout);
        panSubCategoryItemsLayout.setHorizontalGroup(
            panSubCategoryItemsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCatBack, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panSubCategoryConteiner, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        panSubCategoryItemsLayout.setVerticalGroup(
            panSubCategoryItemsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCategoryItemsLayout.createSequentialGroup()
                .add(panSubCatBack, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panSubCategoryConteiner, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnPreviousCategory.setText("<");
        btnPreviousCategory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPreviousCategoryActionPerformed(evt);
            }
        });

        btnNextCategory.setText(">");

        panCategoryContainer.setBackground(new java.awt.Color(255, 255, 255));

        togCategories1.setText("jToggleButton1");

        togCategories2.setText("jToggleButton2");

        togCategories3.setText("jToggleButton3");

        togCategories4.setText("jToggleButton4");

        togCategories5.setText("jToggleButton5");

        org.jdesktop.layout.GroupLayout panCategoryContainerLayout = new org.jdesktop.layout.GroupLayout(panCategoryContainer);
        panCategoryContainer.setLayout(panCategoryContainerLayout);
        panCategoryContainerLayout.setHorizontalGroup(
            panCategoryContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoryContainerLayout.createSequentialGroup()
                .addContainerGap()
                .add(togCategories1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3994, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togCategories2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3994, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togCategories3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togCategories4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3998, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togCategories5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3997, Short.MAX_VALUE)
                .addContainerGap())
        );
        panCategoryContainerLayout.setVerticalGroup(
            panCategoryContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panCategoryContainerLayout.createSequentialGroup()
                .addContainerGap()
                .add(panCategoryContainerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, togCategories5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, togCategories4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, togCategories3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, togCategories2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, togCategories1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 646, Short.MAX_VALUE))
                .addContainerGap())
        );

        lblCategories.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblCategories.setText("Categorias:");
        lblCategories.setName("categories"); // NOI18N

        lblPagesCategory.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblPagesCategory.setForeground(new java.awt.Color(0, 0, 102));
        lblPagesCategory.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        org.jdesktop.layout.GroupLayout panCategoriesLayout = new org.jdesktop.layout.GroupLayout(panCategories);
        panCategories.setLayout(panCategoriesLayout);
        panCategoriesLayout.setHorizontalGroup(
            panCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoriesLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnPreviousCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblCategories, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 189, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, panCategoriesLayout.createSequentialGroup()
                        .add(panCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, lblPagesCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20023, Short.MAX_VALUE)
                            .add(panCategoryContainer, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnNextCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        panCategoriesLayout.setVerticalGroup(
            panCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoriesLayout.createSequentialGroup()
                .add(lblCategories, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnNextCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnPreviousCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, panCategoryContainer, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblPagesCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        btnPreviousSubCat.setText("<");
        btnPreviousSubCat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPreviousSubCatActionPerformed(evt);
            }
        });

        btnNextSubCat.setText(">");
        btnNextSubCat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNextSubCatActionPerformed(evt);
            }
        });

        lblSubCat.setFont(new java.awt.Font("Tahoma", 0, 14));
        lblSubCat.setText("Subcategorias:");
        lblSubCat.setName("subCat"); // NOI18N

        panCategoryContainer1.setBackground(new java.awt.Color(255, 255, 255));

        btnSubCategories1.setText("jButton1");

        btnSubCategories2.setText("jButton2");

        btnSubCategories3.setText("jButton3");

        btnSubCategories4.setText("jButton4");

        btnSubCategories5.setText("jButton5");

        org.jdesktop.layout.GroupLayout panCategoryContainer1Layout = new org.jdesktop.layout.GroupLayout(panCategoryContainer1);
        panCategoryContainer1.setLayout(panCategoryContainer1Layout);
        panCategoryContainer1Layout.setHorizontalGroup(
            panCategoryContainer1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategoryContainer1Layout.createSequentialGroup()
                .addContainerGap()
                .add(btnSubCategories1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSubCategories2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3997, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSubCategories3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3995, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSubCategories4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSubCategories5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 3996, Short.MAX_VALUE)
                .addContainerGap())
        );
        panCategoryContainer1Layout.setVerticalGroup(
            panCategoryContainer1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panCategoryContainer1Layout.createSequentialGroup()
                .addContainerGap()
                .add(panCategoryContainer1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCategories5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCategories4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCategories3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCategories2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnSubCategories1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 633, Short.MAX_VALUE))
                .addContainerGap())
        );

        lblPagesSubCat.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblPagesSubCat.setForeground(new java.awt.Color(0, 0, 102));
        lblPagesSubCat.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        org.jdesktop.layout.GroupLayout panSubCategoriesLayout = new org.jdesktop.layout.GroupLayout(panSubCategories);
        panSubCategories.setLayout(panSubCategoriesLayout);
        panSubCategoriesLayout.setHorizontalGroup(
            panSubCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panSubCategoriesLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnPreviousSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panSubCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lblSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 151, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, panSubCategoriesLayout.createSequentialGroup()
                        .add(panSubCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(lblPagesSubCat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20023, Short.MAX_VALUE)
                            .add(panCategoryContainer1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(btnNextSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        panSubCategoriesLayout.setVerticalGroup(
            panSubCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panSubCategoriesLayout.createSequentialGroup()
                .add(lblSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panSubCategoriesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnNextSubCat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 655, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, btnPreviousSubCat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 655, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, panCategoryContainer1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblPagesSubCat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        org.jdesktop.layout.GroupLayout panCatNavigatorLayout = new org.jdesktop.layout.GroupLayout(panCatNavigator);
        panCatNavigator.setLayout(panCatNavigatorLayout);
        panCatNavigatorLayout.setHorizontalGroup(
            panCatNavigatorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCategories, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panSubCategories, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        panCatNavigatorLayout.setVerticalGroup(
            panCatNavigatorLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCatNavigatorLayout.createSequentialGroup()
                .add(panCategories, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panSubCategories, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout panClassicViewLayout = new org.jdesktop.layout.GroupLayout(panClassicView);
        panClassicView.setLayout(panClassicViewLayout);
        panClassicViewLayout.setHorizontalGroup(
            panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 20155, Short.MAX_VALUE)
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panSubCategoryItems, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panCatNavigator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panClassicViewLayout.setVerticalGroup(
            panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 1476, Short.MAX_VALUE)
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panItem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panSubCategoryItems, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panClassicViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panCatNavigator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panMapConteiner.setBackground(new java.awt.Color(255, 255, 255));

        org.jdesktop.layout.GroupLayout panMapConteinerLayout = new org.jdesktop.layout.GroupLayout(panMapConteiner);
        panMapConteiner.setLayout(panMapConteinerLayout);
        panMapConteinerLayout.setHorizontalGroup(
            panMapConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMapConteinerLayout.createSequentialGroup()
                .addContainerGap(586, Short.MAX_VALUE)
                .add(lblMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 946, Short.MAX_VALUE)
                .addContainerGap(2365, Short.MAX_VALUE))
        );
        panMapConteinerLayout.setVerticalGroup(
            panMapConteinerLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(lblMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1476, Short.MAX_VALUE)
        );

        btnMapDVD.setText("(1) DVD");
        btnMapDVD.setName("mapDVD"); // NOI18N

        btnMap2.setText("(2)");

        btnMap3.setText("(3)");

        btnMap4.setText("(4)");

        btnMap5.setText("(5)");

        btnMap6.setText("(6)");

        btnMap7.setText("(7)");

        btnMap8.setText("(8)");

        org.jdesktop.layout.GroupLayout panLeftMapLayout = new org.jdesktop.layout.GroupLayout(panLeftMap);
        panLeftMap.setLayout(panLeftMapLayout);
        panLeftMapLayout.setHorizontalGroup(
            panLeftMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(btnMapDVD, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panLeftMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(panLeftMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE)
                    .add(btnMap8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8093, Short.MAX_VALUE))
                .addContainerGap())
        );
        panLeftMapLayout.setVerticalGroup(
            panLeftMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panLeftMapLayout.createSequentialGroup()
                .add(btnMapDVD, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnMapBook.setText("(9) Libros");
        btnMapBook.setName("mapBook"); // NOI18N

        btnMap10.setText("(10)");

        btnMap11.setText("(11)");

        btnMap12.setText("(12)");

        btnMap13.setText("(13)");

        btnMap14.setText("(14)");

        btnMap15.setText("(15)");

        org.jdesktop.layout.GroupLayout panRightMapLayout = new org.jdesktop.layout.GroupLayout(panRightMap);
        panRightMap.setLayout(panRightMapLayout);
        panRightMapLayout.setHorizontalGroup(
            panRightMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(btnMapBook, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8133, Short.MAX_VALUE)
            .add(panRightMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(panRightMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, btnMap10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE))
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panRightMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnMap12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panRightMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnMap13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panRightMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnMap14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
                .addContainerGap())
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panRightMapLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnMap15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 8113, Short.MAX_VALUE)
                .addContainerGap())
        );
        panRightMapLayout.setVerticalGroup(
            panRightMapLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panRightMapLayout.createSequentialGroup()
                .add(btnMapBook, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap11, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap13, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMap15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                .add(258, 258, 258))
        );

        org.jdesktop.layout.GroupLayout panMapViewLayout = new org.jdesktop.layout.GroupLayout(panMapView);
        panMapView.setLayout(panMapViewLayout);
        panMapViewLayout.setHorizontalGroup(
            panMapViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panMapViewLayout.createSequentialGroup()
                .add(panLeftMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panMapConteiner, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panRightMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panMapViewLayout.setVerticalGroup(
            panMapViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMapConteiner, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panLeftMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panRightMap, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        lblReportsName.setText("Name");
        lblReportsName.setName("reportsName"); // NOI18N

        panProduct1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct10.setText("Name");

        botDetProduct10.setText("See details");
        botDetProduct10.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct10.setName("details1"); // NOI18N

        lblTimes10.setText("times");

        org.jdesktop.layout.GroupLayout panProduct1Layout = new org.jdesktop.layout.GroupLayout(panProduct1);
        panProduct1.setLayout(panProduct1Layout);
        panProduct1Layout.setHorizontalGroup(
            panProduct1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panProduct1Layout.createSequentialGroup()
                .add(labProduct10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct1Layout.setVerticalGroup(
            panProduct1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, labProduct10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
            .add(botDetProduct10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
            .add(lblTimes10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
        );

        panProduct2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct9.setText("Name");

        botDetProduct9.setText("See details");
        botDetProduct9.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct9.setName("details2"); // NOI18N

        lblTimes9.setText("times");

        org.jdesktop.layout.GroupLayout panProduct2Layout = new org.jdesktop.layout.GroupLayout(panProduct2);
        panProduct2.setLayout(panProduct2Layout);
        panProduct2Layout.setHorizontalGroup(
            panProduct2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panProduct2Layout.createSequentialGroup()
                .add(labProduct9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct2Layout.setVerticalGroup(
            panProduct2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(labProduct9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
            .add(botDetProduct9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, lblTimes9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)
        );

        panProduct3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct8.setText("Name");

        botDetProduct8.setText("See details");
        botDetProduct8.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct8.setName("details3"); // NOI18N

        lblTimes8.setText("times");

        org.jdesktop.layout.GroupLayout panProduct3Layout = new org.jdesktop.layout.GroupLayout(panProduct3);
        panProduct3.setLayout(panProduct3Layout);
        panProduct3Layout.setHorizontalGroup(
            panProduct3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct3Layout.createSequentialGroup()
                .add(labProduct8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct3Layout.setVerticalGroup(
            panProduct3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(botDetProduct8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
            .add(labProduct8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
            .add(lblTimes8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
        );

        panProduct4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct7.setText("Name");

        botDetProduct7.setText("See details");
        botDetProduct7.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct7.setName("details4"); // NOI18N

        lblTimes7.setText("times");

        org.jdesktop.layout.GroupLayout panProduct4Layout = new org.jdesktop.layout.GroupLayout(panProduct4);
        panProduct4.setLayout(panProduct4Layout);
        panProduct4Layout.setHorizontalGroup(
            panProduct4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panProduct4Layout.createSequentialGroup()
                .add(labProduct7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct4Layout.setVerticalGroup(
            panProduct4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(labProduct7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
            .add(botDetProduct7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
            .add(lblTimes7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
        );

        panProduct5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct6.setText("Name");

        botDetProduct6.setText("See details");
        botDetProduct6.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct6.setName("details5"); // NOI18N

        lblTimes6.setText("times");

        org.jdesktop.layout.GroupLayout panProduct5Layout = new org.jdesktop.layout.GroupLayout(panProduct5);
        panProduct5.setLayout(panProduct5Layout);
        panProduct5Layout.setHorizontalGroup(
            panProduct5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct5Layout.createSequentialGroup()
                .add(labProduct6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct5Layout.setVerticalGroup(
            panProduct5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(botDetProduct6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
            .add(labProduct6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
            .add(lblTimes6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
        );

        panProduct6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct5.setText("Name");

        botDetProduct5.setText("See details");
        botDetProduct5.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct5.setName("details6"); // NOI18N

        lblTimes5.setText("times");

        org.jdesktop.layout.GroupLayout panProduct6Layout = new org.jdesktop.layout.GroupLayout(panProduct6);
        panProduct6.setLayout(panProduct6Layout);
        panProduct6Layout.setHorizontalGroup(
            panProduct6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panProduct6Layout.createSequentialGroup()
                .add(labProduct5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct6Layout.setVerticalGroup(
            panProduct6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(labProduct5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)
            .add(botDetProduct5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)
            .add(lblTimes5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)
        );

        panProduct7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct4.setText("Name");

        botDetProduct4.setText("See details");
        botDetProduct4.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct4.setName("details7"); // NOI18N

        lblTimes4.setText("times");

        org.jdesktop.layout.GroupLayout panProduct7Layout = new org.jdesktop.layout.GroupLayout(panProduct7);
        panProduct7.setLayout(panProduct7Layout);
        panProduct7Layout.setHorizontalGroup(
            panProduct7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct7Layout.createSequentialGroup()
                .add(labProduct4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct7Layout.setVerticalGroup(
            panProduct7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(botDetProduct4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(labProduct4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(lblTimes4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
        );

        panProduct8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct3.setText("Name");

        botDetProduct3.setText("See details");
        botDetProduct3.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct3.setName("details8"); // NOI18N

        lblTimes3.setText("times");

        org.jdesktop.layout.GroupLayout panProduct8Layout = new org.jdesktop.layout.GroupLayout(panProduct8);
        panProduct8.setLayout(panProduct8Layout);
        panProduct8Layout.setHorizontalGroup(
            panProduct8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct8Layout.createSequentialGroup()
                .add(labProduct3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct8Layout.setVerticalGroup(
            panProduct8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(botDetProduct3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(labProduct3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(lblTimes3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
        );

        panProduct9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct2.setText("Name");

        botDetProduct2.setText("See details");
        botDetProduct2.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct2.setName("details9"); // NOI18N

        lblTimes2.setText("times");

        org.jdesktop.layout.GroupLayout panProduct9Layout = new org.jdesktop.layout.GroupLayout(panProduct9);
        panProduct9.setLayout(panProduct9Layout);
        panProduct9Layout.setHorizontalGroup(
            panProduct9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct9Layout.createSequentialGroup()
                .add(labProduct2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct9Layout.setVerticalGroup(
            panProduct9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, botDetProduct2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(labProduct2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
            .add(lblTimes2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
        );

        panProduct10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));

        labProduct1.setText("Name");

        botDetProduct1.setText("See details");
        botDetProduct1.setMinimumSize(new java.awt.Dimension(0, 0));
        botDetProduct1.setName("details10"); // NOI18N

        lblTimes1.setText("times");

        org.jdesktop.layout.GroupLayout panProduct10Layout = new org.jdesktop.layout.GroupLayout(panProduct10);
        panProduct10.setLayout(panProduct10Layout);
        panProduct10Layout.setHorizontalGroup(
            panProduct10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panProduct10Layout.createSequentialGroup()
                .add(labProduct1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9971, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9972, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(botDetProduct1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panProduct10Layout.setVerticalGroup(
            panProduct10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(botDetProduct1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
            .add(labProduct1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
            .add(lblTimes1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
        );

        lblDetails.setText("Details");
        lblDetails.setName("details"); // NOI18N

        lblTimes.setText("Times");
        lblTimes.setName("times"); // NOI18N

        org.jdesktop.layout.GroupLayout panReportsViewLayout = new org.jdesktop.layout.GroupLayout(panReportsView);
        panReportsView.setLayout(panReportsViewLayout);
        panReportsViewLayout.setHorizontalGroup(
            panReportsViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panProduct10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panProduct1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panReportsViewLayout.createSequentialGroup()
                .add(lblReportsName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9965, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblTimes, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 9964, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(lblDetails, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 214, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );
        panReportsViewLayout.setVerticalGroup(
            panReportsViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panReportsViewLayout.createSequentialGroup()
                .add(panReportsViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(panReportsViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblReportsName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                        .add(lblTimes, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, lblDetails, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panProduct10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        org.jdesktop.layout.GroupLayout panCenterPanelLayout = new org.jdesktop.layout.GroupLayout(panCenterPanel);
        panCenterPanel.setLayout(panCenterPanelLayout);
        panCenterPanelLayout.setHorizontalGroup(
            panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMapView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panClassicView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panReportsView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panCenterPanelLayout.setVerticalGroup(
            panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMapView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panClassicView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(panCenterPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panReportsView, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panLanguages.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panLanguagesMouseClicked(evt);
            }
        });
        panLanguages.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                panLanguagesFocusLost(evt);
            }
        });

        togSpanish.setText("Español");
        togSpanish.setFocusable(false);
        togSpanish.setName("spanish"); // NOI18N
        togSpanish.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togSpanishActionPerformed(evt);
            }
        });
        togSpanish.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                togSpanishFocusLost(evt);
            }
        });

        togEnglish.setText("English");
        togEnglish.setFocusable(false);
        togEnglish.setName("english"); // NOI18N
        togEnglish.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                togEnglishActionPerformed(evt);
            }
        });
        togEnglish.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                togEnglishFocusLost(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panLanguagesLayout = new org.jdesktop.layout.GroupLayout(panLanguages);
        panLanguages.setLayout(panLanguagesLayout);
        panLanguagesLayout.setHorizontalGroup(
            panLanguagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panLanguagesLayout.createSequentialGroup()
                .addContainerGap()
                .add(togSpanish, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(togEnglish, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panLanguagesLayout.setVerticalGroup(
            panLanguagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panLanguagesLayout.createSequentialGroup()
                .addContainerGap()
                .add(panLanguagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(togEnglish, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(togSpanish, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panReports.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panReportsMouseClicked(evt);
            }
        });
        panReports.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                panReportsFocusLost(evt);
            }
        });

        btnSalesRank.setText("Ranking de ventas");
        btnSalesRank.setName("salesRank"); // NOI18N
        btnSalesRank.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalesRankActionPerformed(evt);
            }
        });
        btnSalesRank.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                btnSalesRankFocusGained(evt);
            }
        });

        btnMostWanted.setText("Mas buscados");
        btnMostWanted.setName("mostWanted"); // NOI18N
        btnMostWanted.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMostWantedActionPerformed(evt);
            }
        });
        btnMostWanted.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                btnMostWantedFocusGained(evt);
            }
        });

        btnMostViewed.setText("Mas vistos");
        btnMostViewed.setName("mostViewed"); // NOI18N
        btnMostViewed.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMostViewedActionPerformed(evt);
            }
        });
        btnMostViewed.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                btnMostViewedFocusGained(evt);
            }
        });

        org.jdesktop.layout.GroupLayout panReportsLayout = new org.jdesktop.layout.GroupLayout(panReports);
        panReports.setLayout(panReportsLayout);
        panReportsLayout.setHorizontalGroup(
            panReportsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panReportsLayout.createSequentialGroup()
                .addContainerGap()
                .add(btnSalesRank, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMostWanted, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnMostViewed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panReportsLayout.setVerticalGroup(
            panReportsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panReportsLayout.createSequentialGroup()
                .addContainerGap()
                .add(panReportsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(btnSalesRank, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnMostWanted, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnMostViewed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panKeyboard.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        panKeyboard.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panKeyboardMouseClicked(evt);
            }
        });
        panKeyboard.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                panKeyboardFocusLost(evt);
            }
        });
        panKeyboard.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        btnQ.setText("Q");
        btnQ.setFocusable(false);
        btnQ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQActionPerformed(evt);
            }
        });
        panKeyboard.add(btnQ, new org.netbeans.lib.awtextra.AbsoluteConstraints(86, 78, 50, 50));

        btnW.setText("W");
        btnW.setFocusable(false);
        btnW.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnWActionPerformed(evt);
            }
        });
        panKeyboard.add(btnW, new org.netbeans.lib.awtextra.AbsoluteConstraints(142, 78, 50, 50));

        btnE.setText("E");
        btnE.setFocusable(false);
        btnE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEActionPerformed(evt);
            }
        });
        panKeyboard.add(btnE, new org.netbeans.lib.awtextra.AbsoluteConstraints(198, 78, 50, 50));

        btnR.setText("R");
        btnR.setFocusable(false);
        btnR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRActionPerformed(evt);
            }
        });
        panKeyboard.add(btnR, new org.netbeans.lib.awtextra.AbsoluteConstraints(254, 78, 50, 50));

        btnT.setText("T");
        btnT.setFocusable(false);
        btnT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTActionPerformed(evt);
            }
        });
        panKeyboard.add(btnT, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 78, 50, 50));

        btnY.setText("Y");
        btnY.setFocusable(false);
        btnY.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnYActionPerformed(evt);
            }
        });
        panKeyboard.add(btnY, new org.netbeans.lib.awtextra.AbsoluteConstraints(366, 78, 50, 50));

        btnU.setText("U");
        btnU.setFocusable(false);
        btnU.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUActionPerformed(evt);
            }
        });
        panKeyboard.add(btnU, new org.netbeans.lib.awtextra.AbsoluteConstraints(422, 78, 50, 50));

        btnI.setText("I");
        btnI.setFocusable(false);
        btnI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIActionPerformed(evt);
            }
        });
        panKeyboard.add(btnI, new org.netbeans.lib.awtextra.AbsoluteConstraints(478, 78, 50, 50));

        btnO.setText("O");
        btnO.setFocusable(false);
        btnO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnOActionPerformed(evt);
            }
        });
        panKeyboard.add(btnO, new org.netbeans.lib.awtextra.AbsoluteConstraints(534, 78, 50, 50));

        btnP.setText("P");
        btnP.setFocusable(false);
        btnP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPActionPerformed(evt);
            }
        });
        panKeyboard.add(btnP, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 78, 50, 50));

        btnEnter.setText("->");
        btnEnter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEnterActionPerformed1(evt);
            }
        });
        btnEnter.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                btnEnterFocusGained(evt);
            }
        });
        panKeyboard.add(btnEnter, new org.netbeans.lib.awtextra.AbsoluteConstraints(674, 74, 80, 164));

        btn1.setText("1");
        btn1.setFocusable(false);
        btn1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn1ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 22, 50, 50));

        btn2.setText("2");
        btn2.setFocusable(false);
        btn2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn2ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn2, new org.netbeans.lib.awtextra.AbsoluteConstraints(116, 22, 50, 50));

        btn3.setText("3");
        btn3.setFocusable(false);
        btn3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn3ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn3, new org.netbeans.lib.awtextra.AbsoluteConstraints(172, 22, 50, 50));

        btn4.setText("4");
        btn4.setFocusable(false);
        btn4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn4ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn4, new org.netbeans.lib.awtextra.AbsoluteConstraints(228, 22, 50, 50));

        btn5.setText("5");
        btn5.setFocusable(false);
        btn5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn5ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn5, new org.netbeans.lib.awtextra.AbsoluteConstraints(284, 22, 50, 50));

        btn6.setText("6");
        btn6.setFocusable(false);
        btn6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn6ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn6, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 22, 50, 50));

        btn7.setText("7");
        btn7.setFocusable(false);
        btn7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn7ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn7, new org.netbeans.lib.awtextra.AbsoluteConstraints(396, 22, 50, 50));

        btn8.setText("8");
        btn8.setFocusable(false);
        btn8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn8ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn8, new org.netbeans.lib.awtextra.AbsoluteConstraints(452, 22, 50, 50));

        btn9.setText("9");
        btn9.setFocusable(false);
        btn9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn9ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn9, new org.netbeans.lib.awtextra.AbsoluteConstraints(508, 22, 50, 50));

        btn0.setText("0");
        btn0.setFocusable(false);
        btn0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn0ActionPerformed(evt);
            }
        });
        panKeyboard.add(btn0, new org.netbeans.lib.awtextra.AbsoluteConstraints(564, 22, 50, 50));

        btnL.setText("L");
        btnL.setFocusable(false);
        btnL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLActionPerformed(evt);
            }
        });
        panKeyboard.add(btnL, new org.netbeans.lib.awtextra.AbsoluteConstraints(552, 134, 50, 50));

        btnK.setText("K");
        btnK.setFocusable(false);
        btnK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnKActionPerformed(evt);
            }
        });
        panKeyboard.add(btnK, new org.netbeans.lib.awtextra.AbsoluteConstraints(496, 134, 50, 50));

        btnJ.setText("J");
        btnJ.setFocusable(false);
        btnJ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnJActionPerformed(evt);
            }
        });
        panKeyboard.add(btnJ, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 134, 50, 50));

        btnG.setText("G");
        btnG.setFocusable(false);
        btnG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGActionPerformed(evt);
            }
        });
        panKeyboard.add(btnG, new org.netbeans.lib.awtextra.AbsoluteConstraints(328, 134, 50, 50));

        btnH.setText("H");
        btnH.setFocusable(false);
        btnH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHActionPerformed(evt);
            }
        });
        panKeyboard.add(btnH, new org.netbeans.lib.awtextra.AbsoluteConstraints(384, 134, 50, 50));

        btnF.setText("F");
        btnF.setFocusable(false);
        btnF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFActionPerformed(evt);
            }
        });
        panKeyboard.add(btnF, new org.netbeans.lib.awtextra.AbsoluteConstraints(272, 134, 50, 50));

        btnD.setText("D");
        btnD.setFocusable(false);
        btnD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDActionPerformed(evt);
            }
        });
        panKeyboard.add(btnD, new org.netbeans.lib.awtextra.AbsoluteConstraints(216, 134, 50, 50));

        btnS.setText("S");
        btnS.setFocusable(false);
        btnS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSActionPerformed(evt);
            }
        });
        panKeyboard.add(btnS, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 134, 50, 50));

        btnA.setText("A");
        btnA.setFocusable(false);
        btnA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAActionPerformed(evt);
            }
        });
        panKeyboard.add(btnA, new org.netbeans.lib.awtextra.AbsoluteConstraints(104, 134, 50, 50));

        btnX.setText("X");
        btnX.setFocusable(false);
        btnX.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnXActionPerformed(evt);
            }
        });
        panKeyboard.add(btnX, new org.netbeans.lib.awtextra.AbsoluteConstraints(172, 190, 50, 50));

        btnB.setText("B");
        btnB.setFocusable(false);
        btnB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBActionPerformed(evt);
            }
        });
        panKeyboard.add(btnB, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 190, 50, 50));

        btnCloseKeyboard.setText("Cerrar teclado");
        btnCloseKeyboard.setName("closeKeyboard"); // NOI18N
        btnCloseKeyboard.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCloseKeyboardActionPerformed(evt);
            }
        });
        panKeyboard.add(btnCloseKeyboard, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 240, 160, 50));

        btnC.setText("C");
        btnC.setFocusable(false);
        btnC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCActionPerformed(evt);
            }
        });
        panKeyboard.add(btnC, new org.netbeans.lib.awtextra.AbsoluteConstraints(228, 190, 50, 50));

        btnN.setText("N");
        btnN.setFocusable(false);
        btnN.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNActionPerformed(evt);
            }
        });
        panKeyboard.add(btnN, new org.netbeans.lib.awtextra.AbsoluteConstraints(396, 190, 50, 50));

        btnV.setText("V");
        btnV.setFocusable(false);
        btnV.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVActionPerformed(evt);
            }
        });
        panKeyboard.add(btnV, new org.netbeans.lib.awtextra.AbsoluteConstraints(284, 190, 50, 50));

        btnZ.setText("Z");
        btnZ.setFocusable(false);
        btnZ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnZActionPerformed(evt);
            }
        });
        panKeyboard.add(btnZ, new org.netbeans.lib.awtextra.AbsoluteConstraints(116, 190, 50, 50));

        btnSpace.setFocusable(false);
        btnSpace.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSpaceActionPerformed(evt);
            }
        });
        panKeyboard.add(btnSpace, new org.netbeans.lib.awtextra.AbsoluteConstraints(149, 246, 433, 45));

        btnDel.setText("<----");
        btnDel.setFocusable(false);
        btnDel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDelActionPerformed(evt);
            }
        });
        panKeyboard.add(btnDel, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 20, 122, 46));

        btnM.setText("M");
        btnM.setFocusable(false);
        btnM.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMActionPerformed(evt);
            }
        });
        panKeyboard.add(btnM, new org.netbeans.lib.awtextra.AbsoluteConstraints(452, 190, 50, 50));

        org.jdesktop.layout.GroupLayout panMainPanelLayout = new org.jdesktop.layout.GroupLayout(panMainPanel);
        panMainPanel.setLayout(panMainPanelLayout);
        panMainPanelLayout.setHorizontalGroup(
            panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panCenterPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panNorthPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(panMainPanelLayout.createSequentialGroup()
                .addContainerGap(9680, Short.MAX_VALUE)
                .add(panSouthPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(9681, Short.MAX_VALUE))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .addContainerGap(9760, Short.MAX_VALUE)
                    .add(panLanguages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(10069, Short.MAX_VALUE)))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .add(223, 223, 223)
                    .add(panKeyboard, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 768, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(19164, Short.MAX_VALUE)))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .addContainerGap(9840, Short.MAX_VALUE)
                    .add(panReports, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(9833, Short.MAX_VALUE)))
        );
        panMainPanelLayout.setVerticalGroup(
            panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, panMainPanelLayout.createSequentialGroup()
                .add(panNorthPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(panCenterPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(17, 17, 17)
                .add(panSouthPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .addContainerGap(1418, Short.MAX_VALUE)
                    .add(panLanguages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(159, 159, 159)))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .add(116, 116, 116)
                    .add(panKeyboard, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 300, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(1333, Short.MAX_VALUE)))
            .add(panMainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(panMainPanelLayout.createSequentialGroup()
                    .addContainerGap(1416, Short.MAX_VALUE)
                    .add(panReports, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(161, 161, 161)))
        );

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(panMainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void togLanguageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togLanguageActionPerformed
        if(togAyuda.isSelected()){
            togLanguage.setSelected(false);
            lblMsj.setText("Este boton permite cambiar el idioma con que se muestra la aplicación(seleccione el idioima deseado)(para usarlo debe detener la ayuda)");
        }else{
            lblMsj.setText("loading");
            if(this.togLanguage.isSelected()){
                this.panLanguages.setVisible(true);
                this.panMainPanel.setComponentZOrder(this.panLanguages, 0);
            }else{
                this.panLanguages.setVisible(false);
            }
            lblMsj.setText("");
        }
    }//GEN-LAST:event_togLanguageActionPerformed

    private void panLanguagesFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_panLanguagesFocusLost
        this.panLanguages.setVisible(false);
    }//GEN-LAST:event_panLanguagesFocusLost

    private void togSpanishFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_togSpanishFocusLost
    }//GEN-LAST:event_togSpanishFocusLost

    private void togEnglishFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_togEnglishFocusLost
    }//GEN-LAST:event_togEnglishFocusLost

    private void togEnglishActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togEnglishActionPerformed
        if(togEnglish.isSelected()){
        lblMsj.setText("loading");
        this.handLanguage.setActualLanguage(0);
        setCategories();
        if(actualCategorie!=0){
            this.panLanguages.setVisible(false);
            setSubCategories(actualCategorie);
            this.panLanguages.setVisible(true);
        }

        this.togSpanish.setSelected(false);
        Locale locale = new Locale("en","US");

        Locale.setDefault(locale);

        this.changeLanguage(locale);
        lblMsj.setText("");
        }
        togEnglish.setSelected(true);
    }//GEN-LAST:event_togEnglishActionPerformed

    private void togSpanishActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togSpanishActionPerformed
        if(togSpanish.isSelected()){
        lblMsj.setText("loading");
        this.handLanguage.setActualLanguage(1);
        setCategories();
        if(actualCategorie!=0){
            this.panLanguages.setVisible(false);
            setSubCategories(actualCategorie);
            this.panLanguages.setVisible(true);
        }

        this.togEnglish.setSelected(false);
        Locale locale = new Locale("es","AR");

        Locale.setDefault(locale);

        this.changeLanguage(locale);
                       lblMsj.setText("");
        }
        togSpanish.setSelected(true);
    }//GEN-LAST:event_togSpanishActionPerformed
    private void btnSubCatItem1MouseReleased(MouseEvent evt){}
    private void txtSearchFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtSearchFocusGained
        if(togAyuda.isSelected()){
            lblMsj.setText("Este cuadro de texto permite buscar productos por el nombre(escriva con el teclado virtual)(para usarlo debe detener la ayuda)");
        }else{
            this.panKeyboard.setVisible(true);
            this.panMainPanel.setComponentZOrder(this.panKeyboard, 0);
        }
    }//GEN-LAST:event_txtSearchFocusGained

    private void panKeyboardFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_panKeyboardFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_panKeyboardFocusLost

    private void btnWActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnWActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'W');
    }//GEN-LAST:event_btnWActionPerformed

    private void btnQActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'Q');
    }//GEN-LAST:event_btnQActionPerformed

    private void btnRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'R');
    }//GEN-LAST:event_btnRActionPerformed

    private void btnTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'T');
    }//GEN-LAST:event_btnTActionPerformed

    private void btnAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'A');
    }//GEN-LAST:event_btnAActionPerformed

    private void btnGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'G');
    }//GEN-LAST:event_btnGActionPerformed

    private void btnEnieActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEnieActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'Ñ');
    }//GEN-LAST:event_btnEnieActionPerformed

    private void btnVActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'V');
    }//GEN-LAST:event_btnVActionPerformed

    private void btnDelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDelActionPerformed
        if(this.txtSearch.getText().length()>0)
            this.txtSearch.setText(this.txtSearch.getText().substring(0, this.txtSearch.getText().length()-1));
    }//GEN-LAST:event_btnDelActionPerformed

    private void panReportsFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_panReportsFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_panReportsFocusLost

    private void togReportsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togReportsActionPerformed
         if(togAyuda.isSelected()){
             togReports.setSelected(false);
            lblMsj.setText("Este boton permite ver varios reportes(seleccione el reporte que desee ver)(para usarlo debe detener la ayuda)");
        }else{
            if(this.togReports.isSelected()){
                this.panReports.setVisible(true);
                this.panMainPanel.setComponentZOrder(this.panReports, 0);
            }else{
                this.panReports.setVisible(false);
            }
        }
    }//GEN-LAST:event_togReportsActionPerformed

    private void btnSalesRankActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalesRankActionPerformed

    }//GEN-LAST:event_btnSalesRankActionPerformed

    private void btnMostWantedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMostWantedActionPerformed

    }//GEN-LAST:event_btnMostWantedActionPerformed

    private void btnMostViewedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMostViewedActionPerformed

    }//GEN-LAST:event_btnMostViewedActionPerformed
    JPanel backSubCatView;
    JPanel backSubCatPan;
    private void btnBackSubCatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBackSubCatActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite ir a la vista de la que uno viene(para usarlo debe detener la ayuda)");
        }else{
        changeView(backSubCatView,backSubCatPan);
        /*if(togClassicView.isSelected()){
            this.panSubCategoryItems.setVisible(false);
            this.panCatNavigator.setVisible(true);
            }else{
            this.panClassicView.setVisible(false);
            this.panMapView.setVisible(true);
            }*/
        }
}//GEN-LAST:event_btnBackSubCatActionPerformed
        JPanel backItemView;
        JPanel backItemPan;
    private void btnBackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBackActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite ir a la vista de la que uno viene(para usarlo debe detener la ayuda)");
        }else{
        changeView(backItemView,backItemPan);
        /*this.panItem.setVisible(false);
        this.panSubCategoryItems.setVisible(true);*/
        }
}//GEN-LAST:event_btnBackActionPerformed

    private void togMapViewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togMapViewActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite ir a la vista del mapa del local(para usarlo debe detener la ayuda)");
            togMapView.setSelected(false);
        }else{
            if(togMapView.isSelected()){
        changeView(panMapView,null);
        /*this.panClassicView.setVisible(false);
        this.panMapView.setVisible(true);*/
        this.togClassicView.setSelected(false);
        /*this.panItem.setVisible(false);
        this.panSubCategoryItems.setVisible(false);
        this.panCatNavigator.setVisible(false);*/
       /* Graphics g=this.panMapConteiner.getGraphics();
        try {
            g.drawImage(ImageIO.read(new File("/hcitpe2/Plano.jpg")), panMapConteiner.HEIGHT, panMapConteiner.WIDTH, null);
        } catch (IOException ex) {
            Logger.getLogger(frmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }*/
            }
            togMapView.setSelected(true);
        }
    }//GEN-LAST:event_togMapViewActionPerformed

    private void togClassicViewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togClassicViewActionPerformed
       if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite ir a la vista de navegacion por los productos(para usarlo debe detener la ayuda)");
            togClassicView.setSelected(false);
        }else{
           if(togClassicView.isSelected()){
        changeView(panClassicView, panCatNavigator);
        /*this.panMapView.setVisible(false);
        this.panClassicView.setVisible(true);*/
        this.togMapView.setSelected(false);
        /*this.panCatNavigator.setVisible(true);
        this.panSubCategoryItems.setVisible(false);
        this.panItem.setVisible(false);*/
        setCategories();
           }
           togClassicView.setSelected(true);
        }
    }//GEN-LAST:event_togClassicViewActionPerformed

    private void btnNextItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNextItemActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite iterar entre los items(para usarlo debe detener la ayuda)");
        }else{
        nextProduct();
        }
    }//GEN-LAST:event_btnNextItemActionPerformed

    private void btnSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'S');
    }//GEN-LAST:event_btnSActionPerformed

    private void btnCloseKeyboardActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCloseKeyboardActionPerformed
        this.panKeyboard.setVisible(false);
    }//GEN-LAST:event_btnCloseKeyboardActionPerformed

    private void btn1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn1ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'1');
    }//GEN-LAST:event_btn1ActionPerformed

    private void btn2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn2ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'2');
    }//GEN-LAST:event_btn2ActionPerformed

    private void btn3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn3ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'3');
    }//GEN-LAST:event_btn3ActionPerformed

    private void btn4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn4ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'4');
    }//GEN-LAST:event_btn4ActionPerformed

    private void btn5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn5ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'5');
    }//GEN-LAST:event_btn5ActionPerformed

    private void btn6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn6ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'6');
    }//GEN-LAST:event_btn6ActionPerformed

    private void btn7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn7ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'7');
    }//GEN-LAST:event_btn7ActionPerformed

    private void btn8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn8ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'8');
    }//GEN-LAST:event_btn8ActionPerformed

    private void btn9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn9ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'9');
    }//GEN-LAST:event_btn9ActionPerformed

    private void btn0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn0ActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'0');
    }//GEN-LAST:event_btn0ActionPerformed

    private void btnEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'E');
    }//GEN-LAST:event_btnEActionPerformed

    private void btnYActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnYActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'Y');
    }//GEN-LAST:event_btnYActionPerformed

    private void btnUActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'U');
    }//GEN-LAST:event_btnUActionPerformed

    private void btnIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'I');
    }//GEN-LAST:event_btnIActionPerformed

    private void btnOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'O');
    }//GEN-LAST:event_btnOActionPerformed

    private void btnPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'P');
    }//GEN-LAST:event_btnPActionPerformed

    private void btnDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'D');
    }//GEN-LAST:event_btnDActionPerformed

    private void btnFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'F');
    }//GEN-LAST:event_btnFActionPerformed

    private void btnHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'H');
    }//GEN-LAST:event_btnHActionPerformed

    private void btnJActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnJActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'J');
    }//GEN-LAST:event_btnJActionPerformed

    private void btnKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnKActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'K');
    }//GEN-LAST:event_btnKActionPerformed

    private void btnLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'L');
    }//GEN-LAST:event_btnLActionPerformed

    private void btnZActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnZActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'Z');
    }//GEN-LAST:event_btnZActionPerformed

    private void btnXActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnXActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'X');
    }//GEN-LAST:event_btnXActionPerformed

    private void btnCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'C');
    }//GEN-LAST:event_btnCActionPerformed

    private void btnBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'B');
    }//GEN-LAST:event_btnBActionPerformed

    private void btnNActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'N');
    }//GEN-LAST:event_btnNActionPerformed

    private void btnMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+'M');
    }//GEN-LAST:event_btnMActionPerformed

    private void btnSpaceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSpaceActionPerformed
        this.txtSearch.setText(this.txtSearch.getText()+' ');
    }//GEN-LAST:event_btnSpaceActionPerformed

    private void btnEnterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEnterActionPerformed
        this.btnSearch.doClick();
    }//GEN-LAST:event_btnEnterActionPerformed

    private void btnPreviousCategoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPreviousCategoryActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnPreviousCategoryActionPerformed

    private void btnSubCatItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSubCatItem1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnSubCatItem1ActionPerformed

    private void btnQuitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite cerrar el programa(para usarlo debe detener la ayuda)");
        }else{
        this.dispose();
        }
    }//GEN-LAST:event_btnQuitActionPerformed

    private void btnPreviousSubCatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPreviousSubCatActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton muestra mas items(para usarlo debe detener la ayuda)");
        }else{
        backSubCategories();
        }
    }//GEN-LAST:event_btnPreviousSubCatActionPerformed

    private void btnNextSubCatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNextSubCatActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton muestra mas items(para usarlo debe detener la ayuda)");
        }else{
        nextSubCategories();
        }
    }//GEN-LAST:event_btnNextSubCatActionPerformed

    private void btnPreviousSubCategoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPreviousSubCategoryActionPerformed
       if(togAyuda.isSelected()){
            lblMsj.setText("Este boton muestra mas subcategorias(para usarlo debe detener la ayuda)");
        }else{
        backItems();
        }
    }//GEN-LAST:event_btnPreviousSubCategoryActionPerformed

    private void btnNextSubCategoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNextSubCategoryActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton muestra mas items(para usarlo debe detener la ayuda)");
        }else{
        nextItems();
        }
    }//GEN-LAST:event_btnNextSubCategoryActionPerformed

    private void btnPreviousItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPreviousItemActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton muestra mas items(para usarlo debe detener la ayuda)");
        }else{
        backProduct();
        }
    }//GEN-LAST:event_btnPreviousItemActionPerformed

    private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite buscar lo que esta escrito en el cuadro de texto de la izquierda(para usarlo debe detener la ayuda)");
        }else{
        if(txtSearch.getText()!=null){
            search(txtSearch.getText());
            this.panKeyboard.setVisible(false);
            }
        }
    }//GEN-LAST:event_btnSearchActionPerformed

    private void btnScanCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnScanCodeActionPerformed
        if(togAyuda.isSelected()){
            lblMsj.setText("Este boton permite escanear codigos de barra(para usarlo debe detener la ayuda)");
        }else{
            final JFrame f = new JFrame();
        try {
            JFileChooser fileChooser = new JFileChooser();
            FileNameExtensionFilter filter = new FileNameExtensionFilter("Archivos de imagenes", "jpg", "gif","png","jpeg","bmp");
            fileChooser.setFileFilter(filter);
            fileChooser.setCurrentDirectory(new File(System.getProperty("user.dir") + File.separator + "resources" +
                    File.separator + "images"));
            int seleccion = fileChooser.showOpenDialog(this);

            if (seleccion == JFileChooser.APPROVE_OPTION)
            {
                File file = fileChooser.getSelectedFile();

                Clipping test = new Clipping(ImageIO.read(file),this,f);
                ClipCreator mover = new ClipCreator(test);
                test.addMouseListener(mover);
                test.addMouseMotionListener(mover);
                
                JButton btnCloseBarCode = new JButton("Cerrar");
                btnCloseBarCode.setName("close");

                ApplicationContext ctx= Application.getInstance().getContext();

                ctx.getResourceMap(AppHCIStore.class).injectComponent(btnCloseBarCode);

                btnCloseBarCode.addActionListener(new ActionListener()
                {
                    public void actionPerformed(ActionEvent e)
                    {
                        f.dispose();
                    }
                });
                f.setResizable(false);
                f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                f.getContentPane().add(new JScrollPane(test));
                f.getContentPane().add(test.getUIPanel(), "North");
                f.getContentPane().add(btnCloseBarCode,"South");

                f.setSize(600, 600);
                f.setLocation(200, 200);
                f.setVisible(true);
            }

        } catch (IOException ex) {
            lblMsj.setText("hubo un problema con la lectura del archivo, es posible que el programa empiece a funcionar mal.");
            f.dispose();
        }
        }

    }//GEN-LAST:event_btnScanCodeActionPerformed

    private void btnSearchFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_btnSearchFocusLost
        lblMsj.setText("");
    }//GEN-LAST:event_btnSearchFocusLost

    private void panKeyboardMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panKeyboardMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_panKeyboardMouseClicked

    private void txtSearchFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtSearchFocusLost
        this.panKeyboard.setVisible(false);
    }//GEN-LAST:event_txtSearchFocusLost

    private void btnEnterActionPerformed1(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEnterActionPerformed1

    }//GEN-LAST:event_btnEnterActionPerformed1

    private void togLanguageFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_togLanguageFocusLost
       this.panLanguages.setVisible(false);
       this.togLanguage.setSelected(false);
    }//GEN-LAST:event_togLanguageFocusLost

    private void panLanguagesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panLanguagesMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_panLanguagesMouseClicked

    private void panReportsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panReportsMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_panReportsMouseClicked

    private void togReportsFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_togReportsFocusLost
       this.panReports.setVisible(false);
       this.togReports.setSelected(false);
    }//GEN-LAST:event_togReportsFocusLost

    private void btnHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHelpActionPerformed

    }//GEN-LAST:event_btnHelpActionPerformed

    private void togAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_togAyudaActionPerformed
        if(!togAyuda.isSelected()){
            lblMsj.setText("");
        }
    }//GEN-LAST:event_togAyudaActionPerformed

    private void btnEnterFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_btnEnterFocusGained
         if(txtSearch.getText()!=null){
            search(txtSearch.getText());
            this.panKeyboard.setVisible(false);
        }
    }//GEN-LAST:event_btnEnterFocusGained

    private void btnSalesRankFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_btnSalesRankFocusGained
       togMapView.setSelected(false);
       togClassicView.setSelected(false);
        lblMsj.setText("loading");
        breadcumbCat="Reports ,";
       breadcumbSubCat="ranking de ventas";
       lblTimes.setText("Position");
       try{
       startReportView(new Ranking());
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando los reportes");
            changeView(panCatNavigator, panClassicView);
        }
       lblMsj.setText("");
    }//GEN-LAST:event_btnSalesRankFocusGained

    private void btnMostWantedFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_btnMostWantedFocusGained
        togMapView.setSelected(false);
       togClassicView.setSelected(false);
        lblMsj.setText("loading");
        breadcumbCat="Reports ,";
       breadcumbSubCat="mas buscados";
       lblTimes.setText("Serched");
       try{
       startReportView(new ReporteAdapter(masBuscados));
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando los reportes");
            changeView(panCatNavigator, panClassicView);
        }
              lblMsj.setText("");
    }//GEN-LAST:event_btnMostWantedFocusGained

    private void btnMostViewedFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_btnMostViewedFocusGained
        togMapView.setSelected(false);
       togClassicView.setSelected(false);
        lblMsj.setText("loading");
        breadcumbCat="Reports ,";
       breadcumbSubCat="mas vistos";
       lblTimes.setText("Seen");
       try{
       startReportView(new ReporteAdapter(masVistos));
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando los reportes");
            changeView(panCatNavigator, panClassicView);
        }
              lblMsj.setText("");
    }//GEN-LAST:event_btnMostViewedFocusGained


    public void changeLanguage(Locale locale){
        Locale.setDefault(locale);
        ApplicationContext ctx= Application.getInstance().getContext();

        ctx.getResourceMap(AppHCIStore.class).injectComponent(this);
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogSpanish());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogEnglish());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnSearch());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogClassicView());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogMapView());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnScanCode());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogLanguage());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogReports());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnQuit());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnBack());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDSalesRankTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDStaringTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDLanguageTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDFormatTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDSubsTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDRegionTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDAspectTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDDiscsTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDReleaseTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblDVDDurationTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblBookSalesRankTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblBookAuthorsTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblBookPublisherTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblBookPubDateTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblBookLanguageTitle());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnBackSubCat());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblCategories());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getLblSubCat());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnMostViewed());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnMostWanted());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnSalesRank());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBtnCloseKeyboard());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getTogAyuda());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct1());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct2());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct3());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct4());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct5());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct6());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct7());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct8());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct9());
        ctx.getResourceMap(AppHCIStore.class).injectComponent(this.getBotDetProduct10());



    }
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new frmPrincipal().setVisible(true);
            }
        });
    }

   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botDetProduct1;
    private javax.swing.JButton botDetProduct10;
    private javax.swing.JButton botDetProduct2;
    private javax.swing.JButton botDetProduct3;
    private javax.swing.JButton botDetProduct4;
    private javax.swing.JButton botDetProduct5;
    private javax.swing.JButton botDetProduct6;
    private javax.swing.JButton botDetProduct7;
    private javax.swing.JButton botDetProduct8;
    private javax.swing.JButton botDetProduct9;
    private javax.swing.JButton btn0;
    private javax.swing.JButton btn1;
    private javax.swing.JButton btn2;
    private javax.swing.JButton btn3;
    private javax.swing.JButton btn4;
    private javax.swing.JButton btn5;
    private javax.swing.JButton btn6;
    private javax.swing.JButton btn7;
    private javax.swing.JButton btn8;
    private javax.swing.JButton btn9;
    private javax.swing.JButton btnA;
    private javax.swing.JButton btnB;
    private javax.swing.JButton btnBack;
    private javax.swing.JButton btnBackSubCat;
    private javax.swing.JButton btnC;
    private javax.swing.JButton btnCloseKeyboard;
    private javax.swing.JButton btnD;
    private javax.swing.JButton btnDel;
    private javax.swing.JButton btnE;
    private javax.swing.JButton btnEnter;
    private javax.swing.JButton btnF;
    private javax.swing.JButton btnG;
    private javax.swing.JButton btnH;
    private javax.swing.JButton btnHelp;
    private javax.swing.JButton btnI;
    private javax.swing.JButton btnJ;
    private javax.swing.JButton btnK;
    private javax.swing.JButton btnL;
    private javax.swing.JButton btnM;
    private javax.swing.JButton btnMap10;
    private javax.swing.JButton btnMap11;
    private javax.swing.JButton btnMap12;
    private javax.swing.JButton btnMap13;
    private javax.swing.JButton btnMap14;
    private javax.swing.JButton btnMap15;
    private javax.swing.JButton btnMap2;
    private javax.swing.JButton btnMap3;
    private javax.swing.JButton btnMap4;
    private javax.swing.JButton btnMap5;
    private javax.swing.JButton btnMap6;
    private javax.swing.JButton btnMap7;
    private javax.swing.JButton btnMap8;
    private javax.swing.JButton btnMapBook;
    private javax.swing.JButton btnMapDVD;
    private javax.swing.JButton btnMostViewed;
    private javax.swing.JButton btnMostWanted;
    private javax.swing.JButton btnN;
    private javax.swing.JButton btnNextCategory;
    private javax.swing.JButton btnNextItem;
    private javax.swing.JButton btnNextSubCat;
    private javax.swing.JButton btnNextSubCategory;
    private javax.swing.JButton btnO;
    private javax.swing.JButton btnP;
    private javax.swing.JButton btnPreviousCategory;
    private javax.swing.JButton btnPreviousItem;
    private javax.swing.JButton btnPreviousSubCat;
    private javax.swing.JButton btnPreviousSubCategory;
    private javax.swing.JButton btnQ;
    private javax.swing.JButton btnQuit;
    private javax.swing.JButton btnR;
    private javax.swing.JButton btnS;
    private javax.swing.JButton btnSalesRank;
    private javax.swing.JButton btnScanCode;
    private javax.swing.JButton btnSearch;
    private javax.swing.JButton btnSpace;
    private javax.swing.JButton btnSubCatItem1;
    private javax.swing.JButton btnSubCatItem10;
    private javax.swing.JButton btnSubCatItem2;
    private javax.swing.JButton btnSubCatItem3;
    private javax.swing.JButton btnSubCatItem4;
    private javax.swing.JButton btnSubCatItem5;
    private javax.swing.JButton btnSubCatItem6;
    private javax.swing.JButton btnSubCatItem7;
    private javax.swing.JButton btnSubCatItem8;
    private javax.swing.JButton btnSubCatItem9;
    private javax.swing.JButton btnSubCategories1;
    private javax.swing.JButton btnSubCategories2;
    private javax.swing.JButton btnSubCategories3;
    private javax.swing.JButton btnSubCategories4;
    private javax.swing.JButton btnSubCategories5;
    private javax.swing.JButton btnT;
    private javax.swing.JButton btnU;
    private javax.swing.JButton btnV;
    private javax.swing.JButton btnW;
    private javax.swing.JButton btnX;
    private javax.swing.JButton btnY;
    private javax.swing.JButton btnZ;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel labProduct1;
    private javax.swing.JLabel labProduct10;
    private javax.swing.JLabel labProduct2;
    private javax.swing.JLabel labProduct3;
    private javax.swing.JLabel labProduct4;
    private javax.swing.JLabel labProduct5;
    private javax.swing.JLabel labProduct6;
    private javax.swing.JLabel labProduct7;
    private javax.swing.JLabel labProduct8;
    private javax.swing.JLabel labProduct9;
    private javax.swing.JLabel lblBookAuthors;
    private javax.swing.JLabel lblBookAuthorsTitle;
    private javax.swing.JLabel lblBookLanguage;
    private javax.swing.JLabel lblBookLanguageTitle;
    private javax.swing.JLabel lblBookPubDate;
    private javax.swing.JLabel lblBookPubDateTitle;
    private javax.swing.JLabel lblBookPublisher;
    private javax.swing.JLabel lblBookPublisherTitle;
    private javax.swing.JLabel lblBookSalesRank;
    private javax.swing.JLabel lblBookSalesRankTitle;
    private javax.swing.JLabel lblBreadcumb;
    private javax.swing.JLabel lblCategories;
    private javax.swing.JLabel lblDVDAspect;
    private javax.swing.JLabel lblDVDAspectTitle;
    private javax.swing.JLabel lblDVDDiscs;
    private javax.swing.JLabel lblDVDDiscsTitle;
    private javax.swing.JLabel lblDVDDuration;
    private javax.swing.JLabel lblDVDDurationTitle;
    private javax.swing.JLabel lblDVDFormat;
    private javax.swing.JLabel lblDVDFormatTitle;
    private javax.swing.JLabel lblDVDLanguage;
    private javax.swing.JLabel lblDVDLanguageTitle;
    private javax.swing.JLabel lblDVDRegion;
    private javax.swing.JLabel lblDVDRegionTitle;
    private javax.swing.JLabel lblDVDRelease;
    private javax.swing.JLabel lblDVDReleaseTitle;
    private javax.swing.JLabel lblDVDSalesRank;
    private javax.swing.JLabel lblDVDSalesRankTitle;
    private javax.swing.JLabel lblDVDStaring;
    private javax.swing.JLabel lblDVDStaringTitle;
    private javax.swing.JLabel lblDVDSubs;
    private javax.swing.JLabel lblDVDSubsTitle;
    private javax.swing.JLabel lblDetails;
    private javax.swing.JLabel lblItemCover;
    private javax.swing.JLabel lblItems;
    private javax.swing.JLabel lblMap;
    private javax.swing.JLabel lblMsj;
    private javax.swing.JLabel lblPages;
    private javax.swing.JLabel lblPagesCategory;
    private javax.swing.JLabel lblPagesItem;
    private javax.swing.JLabel lblPagesSubCat;
    private javax.swing.JLabel lblPriceItem;
    private javax.swing.JLabel lblReportsName;
    private javax.swing.JLabel lblSubCat;
    private javax.swing.JLabel lblSubCatTitle;
    private javax.swing.JLabel lblTimes;
    private javax.swing.JLabel lblTimes1;
    private javax.swing.JLabel lblTimes10;
    private javax.swing.JLabel lblTimes2;
    private javax.swing.JLabel lblTimes3;
    private javax.swing.JLabel lblTimes4;
    private javax.swing.JLabel lblTimes5;
    private javax.swing.JLabel lblTimes6;
    private javax.swing.JLabel lblTimes7;
    private javax.swing.JLabel lblTimes8;
    private javax.swing.JLabel lblTimes9;
    private javax.swing.JPanel panBookItemDescription;
    private javax.swing.JPanel panCatNavigator;
    private javax.swing.JPanel panCategories;
    private javax.swing.JPanel panCategoryContainer;
    private javax.swing.JPanel panCategoryContainer1;
    private javax.swing.JPanel panCategoryContainer2;
    private javax.swing.JPanel panCenterPanel;
    private javax.swing.JPanel panClassicView;
    private javax.swing.JPanel panDVDItemDescription;
    private javax.swing.JPanel panItem;
    private javax.swing.JPanel panItemBar;
    private javax.swing.JPanel panItemContainer;
    private javax.swing.JPanel panItemDescription;
    private javax.swing.JPanel panItemImage;
    private javax.swing.JPanel panItemInfo;
    private javax.swing.JLabel panItemTitle;
    private javax.swing.JPanel panKeyboard;
    private javax.swing.JPanel panLanguages;
    private javax.swing.JPanel panLeftMap;
    private javax.swing.JPanel panMainPanel;
    private javax.swing.JPanel panMapConteiner;
    private javax.swing.JPanel panMapView;
    private javax.swing.JPanel panNorthPanel;
    private javax.swing.JPanel panProduct1;
    private javax.swing.JPanel panProduct10;
    private javax.swing.JPanel panProduct2;
    private javax.swing.JPanel panProduct3;
    private javax.swing.JPanel panProduct4;
    private javax.swing.JPanel panProduct5;
    private javax.swing.JPanel panProduct6;
    private javax.swing.JPanel panProduct7;
    private javax.swing.JPanel panProduct8;
    private javax.swing.JPanel panProduct9;
    private javax.swing.JPanel panReports;
    private javax.swing.JPanel panReportsView;
    private javax.swing.JPanel panRightMap;
    private javax.swing.JPanel panSouthPanel;
    private javax.swing.JPanel panSubCatBack;
    private javax.swing.JPanel panSubCategories;
    private javax.swing.JPanel panSubCategoryConteiner;
    private javax.swing.JPanel panSubCategoryItems;
    private javax.swing.JToggleButton togAyuda;
    private javax.swing.JToggleButton togCategories1;
    private javax.swing.JToggleButton togCategories2;
    private javax.swing.JToggleButton togCategories3;
    private javax.swing.JToggleButton togCategories4;
    private javax.swing.JToggleButton togCategories5;
    private javax.swing.JToggleButton togClassicView;
    private javax.swing.JToggleButton togEnglish;
    private javax.swing.JToggleButton togLanguage;
    private javax.swing.JToggleButton togMapView;
    private javax.swing.JToggleButton togReports;
    private javax.swing.JToggleButton togSpanish;
    private javax.swing.JTextField txtSearch;
    // End of variables declaration//GEN-END:variables

    public JButton getBotDetProduct1() {
        return botDetProduct1;
    }

    public JButton getBotDetProduct10() {
        return botDetProduct10;
    }

    public JButton getBotDetProduct2() {
        return botDetProduct2;
    }

    public JButton getBotDetProduct3() {
        return botDetProduct3;
    }

    public JButton getBotDetProduct4() {
        return botDetProduct4;
    }

    public JButton getBotDetProduct5() {
        return botDetProduct5;
    }

    public JButton getBotDetProduct6() {
        return botDetProduct6;
    }

    public JButton getBotDetProduct7() {
        return botDetProduct7;
    }

    public JButton getBotDetProduct8() {
        return botDetProduct8;
    }

    public JButton getBotDetProduct9() {
        return botDetProduct9;
    }
    // End of variables declaration

    public JToggleButton getTogAyuda() {
        return togAyuda;
    }
    // End of variables declaration

    public String getBreadcumbCat() {
        return breadcumbCat;
    }

    public String getBreadcumbSubCat() {
        return breadcumbSubCat;
    }

    public JButton getBtn0() {
        return btn0;
    }

    public JButton getBtn1() {
        return btn1;
    }

    public JButton getBtn2() {
        return btn2;
    }

    public JButton getBtn3() {
        return btn3;
    }

    public JButton getBtn4() {
        return btn4;
    }

    public JButton getBtn5() {
        return btn5;
    }

    public JButton getBtn6() {
        return btn6;
    }

    public JButton getBtn7() {
        return btn7;
    }

    public JButton getBtn8() {
        return btn8;
    }

    public JButton getBtn9() {
        return btn9;
    }

    public JButton getBtnA() {
        return btnA;
    }

    public JButton getBtnB() {
        return btnB;
    }

    public JButton getBtnBack() {
        return btnBack;
    }

    public JButton getBtnBackSubCat() {
        return btnBackSubCat;
    }

    public JButton getBtnC() {
        return btnC;
    }

    public JButton getBtnCloseKeyboard() {
        return btnCloseKeyboard;
    }

    public JButton getBtnD() {
        return btnD;
    }

    public JButton getBtnDel() {
        return btnDel;
    }

    public JButton getBtnE() {
        return btnE;
    }



    public JButton getBtnEnter() {
        return btnEnter;
    }

    public JButton getBtnF() {
        return btnF;
    }

    public JButton getBtnG() {
        return btnG;
    }

    public JButton getBtnH() {
        return btnH;
    }



    public JButton getBtnI() {
        return btnI;
    }

    public JButton getBtnJ() {
        return btnJ;
    }

    public JButton getBtnK() {
        return btnK;
    }

    public JButton getBtnL() {
        return btnL;
    }

    public JButton getBtnM() {
        return btnM;
    }

    public JButton getBtnMap10() {
        return btnMap10;
    }

    public JButton getBtnMap11() {
        return btnMap11;
    }

    public JButton getBtnMap12() {
        return btnMap12;
    }

    public JButton getBtnMap13() {
        return btnMap13;
    }

    public JButton getBtnMap14() {
        return btnMap14;
    }

    public JButton getBtnMap15() {
        return btnMap15;
    }

    public JButton getBtnMap2() {
        return btnMap2;
    }

    public JButton getBtnMap3() {
        return btnMap3;
    }

    public JButton getBtnMap4() {
        return btnMap4;
    }

    public JButton getBtnMap5() {
        return btnMap5;
    }

    public JButton getBtnMap6() {
        return btnMap6;
    }

    public JButton getBtnMap7() {
        return btnMap7;
    }

    public JButton getBtnMap8() {
        return btnMap8;
    }

    public JButton getBtnMapBook() {
        return btnMapBook;
    }

    public JButton getBtnMapDVD() {
        return btnMapDVD;
    }

    public JButton getBtnMostViewed() {
        return btnMostViewed;
    }

    public JButton getBtnMostWanted() {
        return btnMostWanted;
    }

    public JButton getBtnN() {
        return btnN;
    }

    public JButton getBtnNextCategory() {
        return btnNextCategory;
    }

    public JButton getBtnNextItem() {
        return btnNextItem;
    }

    public JButton getBtnNextSubCat() {
        return btnNextSubCat;
    }

    public JButton getBtnNextSubCategory() {
        return btnNextSubCategory;
    }

    public JButton getBtnO() {
        return btnO;
    }

    public JButton getBtnP() {
        return btnP;
    }

    public JButton getBtnPreviousCategory() {
        return btnPreviousCategory;
    }

    public JButton getBtnPreviousItem() {
        return btnPreviousItem;
    }

    public JButton getBtnPreviousSubCat() {
        return btnPreviousSubCat;
    }

    public JButton getBtnPreviousSubCategory() {
        return btnPreviousSubCategory;
    }

    public JButton getBtnQ() {
        return btnQ;
    }

    public JButton getBtnQuit() {
        return btnQuit;
    }

    public JButton getBtnR() {
        return btnR;
    }

    public JButton getBtnS() {
        return btnS;
    }

    public JButton getBtnSalesRank() {
        return btnSalesRank;
    }

    public JButton getBtnScanCode() {
        return btnScanCode;
    }

    public JButton getBtnSearch() {
        return btnSearch;
    }

    public JButton getBtnSpace() {
        return btnSpace;
    }

    public JButton getBtnSubCatItem1() {
        return btnSubCatItem1;
    }

    public JButton getBtnSubCatItem10() {
        return btnSubCatItem10;
    }

    public JButton getBtnSubCatItem2() {
        return btnSubCatItem2;
    }

    public JButton getBtnSubCatItem3() {
        return btnSubCatItem3;
    }

    public JButton getBtnSubCatItem4() {
        return btnSubCatItem4;
    }

    public JButton getBtnSubCatItem5() {
        return btnSubCatItem5;
    }

    public JButton getBtnSubCatItem6() {
        return btnSubCatItem6;
    }

    public JButton getBtnSubCatItem7() {
        return btnSubCatItem7;
    }

    public JButton getBtnSubCatItem8() {
        return btnSubCatItem8;
    }

    public JButton getBtnSubCatItem9() {
        return btnSubCatItem9;
    }

    public JButton getBtnSubCategories1() {
        return btnSubCategories1;
    }

    public JButton getBtnSubCategories2() {
        return btnSubCategories2;
    }

    public JButton getBtnSubCategories3() {
        return btnSubCategories3;
    }

    public JButton getBtnSubCategories4() {
        return btnSubCategories4;
    }

    public JButton getBtnSubCategories5() {
        return btnSubCategories5;
    }

    public JButton getBtnT() {
        return btnT;
    }

    public JButton getBtnU() {
        return btnU;
    }

    public JButton getBtnV() {
        return btnV;
    }

    public JButton getBtnW() {
        return btnW;
    }

    public JButton getBtnX() {
        return btnX;
    }

    public JButton getBtnY() {
        return btnY;
    }

    public JButton getBtnZ() {
        return btnZ;
    }

    public CategoryHandler getHandCategories() {
        return handCategories;
    }

    public ItemsHandler getHandItems() {
        return handItems;
    }

    public ProductHandler getHandProduct() {
        return handProduct;
    }

    public SubCategoryHandler getHandSubCategories() {
        return handSubCategories;
    }

    public JLabel getjLabel3() {
        return jLabel3;
    }

    public JLabel getLblBookAuthors() {
        return lblBookAuthors;
    }

    public JLabel getLblBookAuthorsTitle() {
        return lblBookAuthorsTitle;
    }

    public JLabel getLblBookLanguage() {
        return lblBookLanguage;
    }

    public JLabel getLblBookLanguageTitle() {
        return lblBookLanguageTitle;
    }

    public JLabel getLblBookPubDate() {
        return lblBookPubDate;
    }

    public JLabel getLblBookPubDateTitle() {
        return lblBookPubDateTitle;
    }

    public JLabel getLblBookPublisher() {
        return lblBookPublisher;
    }

    public JLabel getLblBookPublisherTitle() {
        return lblBookPublisherTitle;
    }

    public JLabel getLblBookSalesRank() {
        return lblBookSalesRank;
    }

    public JLabel getLblBookSalesRankTitle() {
        return lblBookSalesRankTitle;
    }

    public JLabel getLblBreadcumb() {
        return lblBreadcumb;
    }

    public JLabel getLblCategories() {
        return lblCategories;
    }

    public JLabel getLblDVDAspect() {
        return lblDVDAspect;
    }

    public JLabel getLblDVDAspectTitle() {
        return lblDVDAspectTitle;
    }

    public JLabel getLblDVDDiscs() {
        return lblDVDDiscs;
    }

    public JLabel getLblDVDDiscsTitle() {
        return lblDVDDiscsTitle;
    }

    public JLabel getLblDVDDuration() {
        return lblDVDDuration;
    }

    public JLabel getLblDVDDurationTitle() {
        return lblDVDDurationTitle;
    }

    public JLabel getLblDVDFormat() {
        return lblDVDFormat;
    }

    public JLabel getLblDVDFormatTitle() {
        return lblDVDFormatTitle;
    }

    public JLabel getLblDVDLanguage() {
        return lblDVDLanguage;
    }

    public JLabel getLblDVDLanguageTitle() {
        return lblDVDLanguageTitle;
    }

    public JLabel getLblDVDRegion() {
        return lblDVDRegion;
    }

    public JLabel getLblDVDRegionTitle() {
        return lblDVDRegionTitle;
    }

    public JLabel getLblDVDRelease() {
        return lblDVDRelease;
    }

    public JLabel getLblDVDReleaseTitle() {
        return lblDVDReleaseTitle;
    }

    public JLabel getLblDVDSalesRank() {
        return lblDVDSalesRank;
    }

    public JLabel getLblDVDSalesRankTitle() {
        return lblDVDSalesRankTitle;
    }

    public JLabel getLblDVDStaring() {
        return lblDVDStaring;
    }

    public JLabel getLblDVDStaringTitle() {
        return lblDVDStaringTitle;
    }

    public JLabel getLblDVDSubs() {
        return lblDVDSubs;
    }

    public JLabel getLblDVDSubsTitle() {
        return lblDVDSubsTitle;
    }

    public JLabel getLblItemCover() {
        return lblItemCover;
    }

    public JLabel getLblItems() {
        return lblItems;
    }

    public JLabel getLblMap() {
        return lblMap;
    }

    public JLabel getLblMsj() {
        return lblMsj;
    }

    public JLabel getLblPages() {
        return lblPages;
    }

    public JLabel getLblPagesCategory() {
        return lblPagesCategory;
    }

    public JLabel getLblPagesItem() {
        return lblPagesItem;
    }

    public JLabel getLblPagesSubCat() {
        return lblPagesSubCat;
    }

    public JLabel getLblPriceItem() {
        return lblPriceItem;
    }

    public JLabel getLblSubCat() {
        return lblSubCat;
    }

    public JLabel getLblSubCatTitle() {
        return lblSubCatTitle;
    }

    public JPanel getPanBookItemDescription() {
        return panBookItemDescription;
    }

    public JPanel getPanCatNavigator() {
        return panCatNavigator;
    }

    public JPanel getPanCategories() {
        return panCategories;
    }

    public JPanel getPanCategoryContainer() {
        return panCategoryContainer;
    }

    public JPanel getPanCategoryContainer1() {
        return panCategoryContainer1;
    }

    public JPanel getPanCategoryContainer2() {
        return panCategoryContainer2;
    }

    public JPanel getPanCenterPanel() {
        return panCenterPanel;
    }

    public JPanel getPanClassicView() {
        return panClassicView;
    }

    public JPanel getPanDVDItemDescription() {
        return panDVDItemDescription;
    }

    public JPanel getPanItem() {
        return panItem;
    }

    public JPanel getPanItemBar() {
        return panItemBar;
    }

    public JPanel getPanItemContainer() {
        return panItemContainer;
    }

    public JPanel getPanItemDescription() {
        return panItemDescription;
    }

    public JPanel getPanItemImage() {
        return panItemImage;
    }

    public JPanel getPanItemInfo() {
        return panItemInfo;
    }

    public JLabel getPanItemTitle() {
        return panItemTitle;
    }

    public JPanel getPanKeyboard() {
        return panKeyboard;
    }

    public JPanel getPanLanguages() {
        return panLanguages;
    }

    public JPanel getPanLeftMap() {
        return panLeftMap;
    }

    public JPanel getPanMainPanel() {
        return panMainPanel;
    }

    public JPanel getPanMapConteiner() {
        return panMapConteiner;
    }

    public JPanel getPanMapView() {
        return panMapView;
    }

    public JPanel getPanNorthPanel() {
        return panNorthPanel;
    }

    public JPanel getPanReports() {
        return panReports;
    }

    public JPanel getPanRightMap() {
        return panRightMap;
    }

    public JPanel getPanSouthPanel() {
        return panSouthPanel;
    }

    public JPanel getPanSubCatBack() {
        return panSubCatBack;
    }

    public JPanel getPanSubCategories() {
        return panSubCategories;
    }

    public JPanel getPanSubCategoryConteiner() {
        return panSubCategoryConteiner;
    }

    public JPanel getPanSubCategoryItems() {
        return panSubCategoryItems;
    }

    public JToggleButton getTogCategories1() {
        return togCategories1;
    }

    public JToggleButton getTogCategories2() {
        return togCategories2;
    }

    public JToggleButton getTogCategories3() {
        return togCategories3;
    }

    public JToggleButton getTogCategories4() {
        return togCategories4;
    }

    public JToggleButton getTogCategories5() {
        return togCategories5;
    }

    public JToggleButton getTogClassicView() {
        return togClassicView;
    }

    public JToggleButton getTogEnglish() {
        return togEnglish;
    }

    public JToggleButton getTogLanguage() {
        return togLanguage;
    }

    public JToggleButton getTogMapView() {
        return togMapView;
    }

    public JToggleButton getTogReports() {
        return togReports;
    }

    public JTextField getTxtSearch() {
        return txtSearch;
    }
    // End of variables declaration

    public JToggleButton getTogSpanish() {
        return togSpanish;
    }
    // End of variables declaration

    private void setCategories() {
         this.togCategories1.setVisible(false);
            this.togCategories2.setVisible(false);
            this.togCategories3.setVisible(false);
            this.togCategories4.setVisible(false);
            this.togCategories5.setVisible(false);

            /*this.togCategories1.setSelected(false);
            this.togCategories2.setSelected(false);
            this.togCategories3.setSelected(false);
            this.togCategories4.setSelected(false);
            this.togCategories5.setSelected(false);*/

       try{
       handCategories =new Handlers.CategoryHandler(5,handLanguage.getActualLanguage().id);
       if(handCategories.cantCategories()>0){
           List<apiAccess.Category> categorias=handCategories.next();
           this.lblPagesCategory.setText(handCategories.pagesFoot());
           this.lblPagesSubCat.setText("");
           int i=1;
           for(apiAccess.Category c: categorias){
                try {
                        JToggleButton t=(JToggleButton) this.getClass().getDeclaredField("togCategories" + (i)).get(this);
                        i++;
                        t.setText(c.name);
                        t.addActionListener(new categoryBtnListener(c.id, t));
                        t.setVisible(true);
                } catch (Exception ex) {
                       lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
                }
           }
       }
       this.btnNextCategory.setEnabled(false);
       this.btnPreviousCategory.setEnabled(false);
       this.btnNextSubCat.setEnabled(false);
       this.btnPreviousSubCat.setEnabled(false);
        }catch(IOException e){
            System.out.println("ad");
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
           lblMsj.setText("hubo un error cargando las categorias");
            changeView(panCatNavigator, panClassicView);
        }

    }

    private void search(String name){

        backSubCatView=actualView;
        backSubCatPan=actualPan;
        try{
        handItems =new Handlers.ItemsHandler(10, name);
        if(handItems.cantItems()>0){
           /* if(panMapView.isVisible()){
                panMapView.setVisible(false);
                panClassicView.setVisible(true);
            }*/
            breadcumbCat="Resultados de: ";
            breadcumbSubCat="'"+name+"'";
            nextItems();
           /* panCatNavigator.setVisible(false);
            panItem.setVisible(false);
            panSubCategoryItems.setVisible(true);*/
            changeView(panClassicView, panSubCategoryItems);
            /*setCategories(); por que esta esto aca?*/
            }else{
            if(togSpanish.isSelected()){
                lblMsj.setText("No se han encontrado resultados.");
                }else if(togEnglish.isSelected()){
                lblMsj.setText("No results found.");
                }
           // nextItems();
            }
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando los items");
            changeView(panCatNavigator, panClassicView);
        }

    }




     private class categoryBtnListener implements java.awt.event.ActionListener{
            int id;
            JToggleButton t;
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                if(togAyuda.isSelected()){
                    lblMsj.setText("Este boton permite ver las sub categorias(para usarlo debe detener la ayuda)");
                }else{
            if(t.isSelected()){
                actualCategorie=id;
                setSubCategories(this.id);
                    if(!togCategories1.equals(t)){
                        togCategories1.setSelected(false);
                    }
                    if(!togCategories2.equals(t)){
                        togCategories2.setSelected(false);
                    }
                    if(!togCategories3.equals(t)){
                        togCategories3.setSelected(false);
                    }
                    if(!togCategories4.equals(t)){
                        togCategories4.setSelected(false);
                    }
                    if(!togCategories5.equals(t)){
                        togCategories5.setSelected(false);
                    }
                breadcumbCat=t.getText()+", ";
            }else
                t.setSelected(true);
                }
            }
            public categoryBtnListener(int id, JToggleButton t){
                this.id=id;
                this.t=t;
            }
     }

    private void setSubCategories(int id) {
        try{
       handSubCategories =new Handlers.SubCategoryHandler(5, id, handLanguage.getActualLanguage().id);
       if(handSubCategories.cantSubCategories()>0)
           nextSubCategories();
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando las subcategorias");
            changeView(panCatNavigator, panClassicView);
        }
    }
    private void nextSubCategories() {
       if(handSubCategories.activoNext()){
           List<apiAccess.SubCategory> subCategorias=handSubCategories.next();
           insertSubCategories(subCategorias);
           }
           
    }

    private void backSubCategories() {
      if(handSubCategories.activoBack()){
           List<apiAccess.SubCategory> subCategorias=handSubCategories.back();
           insertSubCategories(subCategorias);
           }
    }

    private void insertSubCategories(List<apiAccess.SubCategory> subCategorias){
        if(handSubCategories.activoNext()){
                this.btnNextSubCat.setEnabled(true);
           }else{
                this.btnNextSubCat.setEnabled(false);
                }
           if(handSubCategories.activoBack()){
                this.btnPreviousSubCat.setEnabled(true);
           }else{
                this.btnPreviousSubCat.setEnabled(false);
                }
        this.lblPagesSubCat.setText(handSubCategories.pagesFoot());
        this.btnSubCategories1.setVisible(false);
        this.btnSubCategories2.setVisible(false);
        this.btnSubCategories3.setVisible(false);
        this.btnSubCategories4.setVisible(false);
        this.btnSubCategories5.setVisible(false);
        int i=1;
        for(apiAccess.SubCategory c: subCategorias){
            try {
                    JButton t=(JButton) this.getClass().getDeclaredField("btnSubCategories" + (i)).get(this);
                    i++;
                    t.setText(c.name);
                    for(ActionListener a: t.getActionListeners())
                        t.removeActionListener(a);
//PREGUNTAR SI SE PUEDE HACER ESTO!
                    t.addActionListener(new subCategoryBtnListener(c.id, c.categoy_id, c.name));
                    t.setVisible(true);
            } catch (Exception ex) {
                    lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
            }
       }
    }

    private class subCategoryBtnListener implements java.awt.event.ActionListener{
            int id;
            int cat_id;
            String name;


            public void actionPerformed(java.awt.event.ActionEvent evt) {
                if(togAyuda.isSelected()){
                    lblMsj.setText("Este boton permite ver los productos de la subcategoria(para usarlo debe detener la ayuda)");
                }else{
                breadcumbSubCat=name;
                 setItems(this.id, this.cat_id);
                 backSubCatView=actualView;
                 backSubCatPan=actualPan;
                 changeView(panClassicView, panSubCategoryItems);
                 /*panCatNavigator.setVisible(false);
                 panSubCategoryItems.setVisible(true);*/
                }
            }
            public subCategoryBtnListener(int id, int cat_id, String name){
                this.id=id;
                this.cat_id=cat_id;
                this.name=name;
            }
     }

     private void setItems(int subCat_id, int cat_id) {
         try{
       handItems =new Handlers.ItemsHandler(10, cat_id, subCat_id, handLanguage.getActualLanguage().id);
       if(handItems.cantItems()>0){
            nextItems();
            }

        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando el item");
            changeView(panCatNavigator, panClassicView);
        }
    }
    private void nextItems() {
       if(handItems.activoNext()){
           List<apiAccess.Items> items=handItems.next();
           insertItems(items);
           }
    }

    private void backItems() {
       if(handItems.activoBack()){
            List<apiAccess.Items> items=handItems.back();
            insertItems(items);
            }
    }

    private void insertItems(List<apiAccess.Items> items){
        if(handItems.activoNext()){
                this.btnNextSubCategory.setEnabled(true);
           }else{
                this.btnNextSubCategory.setEnabled(false);
                }
           if(handItems.activoBack()){
                this.btnPreviousSubCategory.setEnabled(true);
           }else{
                this.btnPreviousSubCategory.setEnabled(false);
                }
        this.btnSubCatItem1.setVisible(false);
        this.btnSubCatItem2.setVisible(false);
        this.btnSubCatItem3.setVisible(false);
        this.btnSubCatItem4.setVisible(false);
        this.btnSubCatItem5.setVisible(false);
        this.btnSubCatItem6.setVisible(false);
        this.btnSubCatItem7.setVisible(false);
        this.btnSubCatItem8.setVisible(false);
        this.btnSubCatItem9.setVisible(false);
        this.btnSubCatItem10.setVisible(false);
        int i=1;
        if(items.size()>0){
            productsList=new LinkedList<Integer>();
            this.lblSubCatTitle.setText(breadcumbCat+breadcumbSubCat);
            this.lblPages.setText(handItems.pagesFoot());
            for(apiAccess.Items c: items){
                try {
                        JButton t=(JButton) this.getClass().getDeclaredField("btnSubCatItem" + (i)).get(this);
                        t.setText("");
                        this.masBuscados.increment(c.id);
                        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
                        int x=(int)screenSize.getWidth()/7;
                        URL url = new URL(c.image_url);
                        ImageIcon icono = new ImageIcon(ImageIO.read(url));
                        Image im=icono.getImage().getScaledInstance(x, icono.getIconHeight()/icono.getIconWidth()*x, i);
                        t.setIcon(new ImageIcon(im));

                        for(ActionListener a: t.getActionListeners())
                            t.removeActionListener(a);
    //PREGUNTAR SI SE PUEDE HACER ESTO!
                        t.addActionListener(new itemListener(i));
                        productsList.add(c.id);
                        t.setVisible(true);
                        i++;
                } catch (Exception ex) {
                      lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
                }
           }
        }
    }
    private class itemListener implements java.awt.event.ActionListener{
            int n;
            int cat_id;


            public void actionPerformed(java.awt.event.ActionEvent evt) {
                if(togAyuda.isSelected()){
                    lblMsj.setText("Este boton permite ver los detalles de los productos(para usarlo debe detener la ayuda)");
                }else{
                 setProduct(this.n);
                 backItemView=actualView;
                 backItemPan=actualPan;
                 changeView(panClassicView, panItem);

                 /*panSubCategoryItems.setVisible(false);*/
                 /*panReportsView.setVisible(false);
                 panClassicView.setVisible(true);
                 panItem.setVisible(true);*/
                }
            }
            public itemListener(int n){
                this.n=n;
            }
     }
     public void setProduct(int n) {
           handProduct =new Handlers.ProductHandler(n, productsList);
           nextProduct();
    }
    private void nextProduct() {
        try{
       if(handProduct.activoNext()){
           Product p=handProduct.next();
           insertProduct(p);
           }
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando el item");
            changeView(panCatNavigator, panClassicView);
        }

    }

    private void backProduct() {
       try{
        if(handProduct.activoBack()){
            Product p=handProduct.back();
            insertProduct(p);
            }
        }catch(IOException e){
            lblMsj.setText("hay problemas con el accesso a internet, compruebe si esta conectado");
            changeView(panCatNavigator, panClassicView);
        }catch(Exception e){
            lblMsj.setText("hubo un error cargando el item");
            changeView(panCatNavigator, panClassicView);
        }
    }
     private void insertProduct(Product p){
         if(handProduct.activoNext()){
                this.btnNextItem.setEnabled(true);
           }else{
                this.btnNextItem.setEnabled(false);
           }
           if(handProduct.activoBack()){
                this.btnPreviousItem.setEnabled(true);
           }else{
                this.btnPreviousItem.setEnabled(false);
                }
         this.masVistos.increment(p.id);
         this.panItemTitle.setText(p.name);
         this.lblPriceItem.setText(p.price+" $");
         this.lblBreadcumb.setText(breadcumbCat+breadcumbSubCat);
         this.lblPagesItem.setText(handProduct.pagesFoot());
         if(p.category_id==1){

             this.lblDVDDuration.setText(p.runtime);
             this.lblDVDRelease.setText(p.release_date);
             this.lblDVDDiscs.setText(Integer.toString(p.number_discs));
             this.lblDVDAspect.setText(p.aspect_ratio);
             this.lblDVDRegion.setText(p.region);
             this.lblDVDSubs.setText(p.subtitles);
             this.lblDVDFormat.setText(p.format);
             this.lblDVDLanguage.setText(p.language);
             this.lblDVDStaring.setText(p.actors);
             this.lblDVDSalesRank.setText(Integer.toString(p.sales_rank));
             this.panBookItemDescription.setVisible(false);
             this.panDVDItemDescription.setVisible(true);
         }else if(p.category_id==2){
             this.lblBookAuthors.setText(p.authors);
             this.lblBookPublisher.setText(p.publisher);
             this.lblBookPubDate.setText(p.published_date);
             this.lblBookLanguage.setText(p.language);
             this.lblBookSalesRank.setText(Integer.toString(p.sales_rank));
             this.panBookItemDescription.setVisible(true);
             this.panDVDItemDescription.setVisible(false);

             }
         this.panSubCategoryItems.setVisible(false);
         this.panCatNavigator.setVisible(false);
         this.panItem.setVisible(true);

        try {
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            int x=(int)screenSize.getWidth()/4;
            URL url = new URL(p.image_url);
            ImageIcon icono = new ImageIcon(ImageIO.read(url));
            Image im=icono.getImage().getScaledInstance(x, icono.getIconHeight()/icono.getIconWidth()*x, 1);
            this.lblItemCover.setIcon(new ImageIcon(im));
        } catch (Exception ex) {
             lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
        }
         


     }

     private void setMap(){
         this.btnMapDVD.setText("(1) DVD");
         this.btnMapDVD.addActionListener(new mapListener(-1,1, "DVD", "All"));
         this.btnMapBook.setText("(9) Book");
         this.btnMapBook.addActionListener(new mapListener(-1,2, "Book", "All"));

         this.btnMap2.setText("(2) Action");
         this.btnMap2.addActionListener(new mapListener(1,1, "DVD", "Action"));
         this.btnMap3.setText("(3) Comedi");
         this.btnMap3.addActionListener(new mapListener(2,1, "DVD", "Comedi"));
         this.btnMap4.setText("(4) Drama");
         this.btnMap4.addActionListener(new mapListener(3,1, "DVD", "Drama"));
         this.btnMap5.setText("(5) Horror");
         this.btnMap5.addActionListener(new mapListener(4,1, "DVD", "Horror"));
         this.btnMap6.setText("(6) Kids");
         this.btnMap6.addActionListener(new mapListener(5,1, "DVD", "Kids"));
         this.btnMap7.setText("(7) Mistery");
         this.btnMap7.addActionListener(new mapListener(6,1, "DVD", "Mystery"));
         this.btnMap8.setText("(8) Science Fiction");
         this.btnMap8.addActionListener(new mapListener(7,1, "DVD", "Science Fiction"));

         this.btnMap10.setText("(10) Biographies");
         this.btnMap10.addActionListener(new mapListener(8,2, "Book", "Biographies"));
         this.btnMap11.setText("(11) Children");
         this.btnMap11.addActionListener(new mapListener(9,2, "Book", "Children"));
         this.btnMap12.setText("(12) History");
         this.btnMap12.addActionListener(new mapListener(10,2, "Book", "History"));
         this.btnMap13.setText("(13) Mystery");
         this.btnMap13.addActionListener(new mapListener(11,2, "Book", "Mystery"));
         this.btnMap14.setText("(14) Romance");
         this.btnMap14.addActionListener(new mapListener(12,2, "Book", "Romance"));
         this.btnMap15.setText("(15) Sport");
         this.btnMap15.addActionListener(new mapListener(13,2, "Book", "Sport"));
     }

     private class mapListener implements java.awt.event.ActionListener{
            int subCat_id;
            int cat_id;
            String cat;
            String subCat;


            public void actionPerformed(java.awt.event.ActionEvent evt) {
                /* panClassicView.setVisible(true);*/
               /* panMapView.setVisible(false);*/
                /* panCatNavigator.setVisible(false);*/
                if(togAyuda.isSelected()){
                    lblMsj.setText("Este boton permite ver los productos de las subcategorias(para usarlo debe detener la ayuda)");
                }else{
                changeView(panClassicView, panSubCategoryItems);
                 panSubCategoryItems.setVisible(true);
                 backSubCatView=panMapView;
                 backSubCatPan=null;
                 breadcumbCat=cat+", ";
                 breadcumbSubCat=subCat;
                 setItems(subCat_id,cat_id);
                }
            }
            public mapListener(int subCat_id, int cat_id, String cat, String subCat){
                this.cat_id=cat_id;
                this.subCat_id=subCat_id;
                this.cat=cat;
                this.subCat=subCat;
            }
     }

     
     private void startReportView(ProductLister reporte){
       productsList=reporte.productList();
       /*this.labProduct10.setText(reporte.name(0));
       this.labProduct9.setText(reporte.name(1));
       this.labProduct8.setText(reporte.name(2));
       this.labProduct7.setText(reporte.name(3));
       this.labProduct6.setText(reporte.name(4));
       this.labProduct5.setText(reporte.name(5));
       this.labProduct4.setText(reporte.name(6));
       this.labProduct3.setText(reporte.name(7));
       this.labProduct2.setText(reporte.name(8));
       this.labProduct1.setText(reporte.name(9));*/
       int i=0;
        for(;i<reporte.size();i++){
                try {
                        JLabel name=(JLabel)this.getClass().getDeclaredField("labProduct"+(reporte.size()-i)).get(this);
                        JLabel times=(JLabel)this.getClass().getDeclaredField("lblTimes"+(reporte.size()-i)).get(this);
                        times.setText(reporte.number(i));
                        name.setText(reporte.name(i));
                        JButton t=(JButton) this.getClass().getDeclaredField("botDetProduct" + (i+1)).get(this);
                        for(ActionListener a: t.getActionListeners())
                            t.removeActionListener(a);
                        t.addActionListener(new itemListener(reporte.size()-i));
                        t.setVisible(true);
                        JPanel panel=(JPanel)this.getClass().getDeclaredField("panProduct"+(reporte.size()-i)).get(this);
                        panel.setVisible(true);

            }catch(Exception e){
                lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
            }
        }
        for(;i<=10;i++){
            try {

            JPanel panel=(JPanel)this.getClass().getDeclaredField("panProduct"+(10-i)).get(this);
            panel.setVisible(false);
            }catch(Exception e){
                lblMsj.setText("se produjo un error, es posible que el programa empiece a funcionar mal.");
            }
        }
       this.panReports.setVisible(false);
       this.togReports.setSelected(false);
        changeView(panReportsView, null);
       /*this.panClassicView.setVisible(false);
       this.panMapView.setVisible(false);
       this.panReportsView.setVisible(true);*/
     }



}
